gpt4 book ai didi

cordova - 如何安装 Cordova ?

转载 作者:行者123 更新时间:2023-12-02 16:57:51 26 4
gpt4 key购买 nike

我像这样安装了cordova:

C:\Windows\system32>npm install -g cordova

我明白了:

C:\Users\cyril\AppData\Roaming\npm\cordova -> C:\Users\cyril\AppData\Roaming\npm\node_modules\cordova\bin\cordova
C:\Users\cyril\AppData\Roaming\npm
`-- cordova@6.4.0

为了测试我运行的安装并得到它:

C:\Windows\system32>cordova --version
C:\Users\cyril\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:126
throw e;
^

Error: write EINVAL
at exports._errnoException (util.js:1022:11)
at WriteStream.Socket._writeGeneric (net.js:715:26)
at WriteStream.Socket._write (net.js:734:8)
at doWrite (_stream_writable.js:334:12)
at writeOrBuffer (_stream_writable.js:320:5)
at WriteStream.Writable.write (_stream_writable.js:247:11)
at WriteStream.Socket.write (net.js:661:40)
at WriteStream.stream.write (C:\Users\cyril\AppData\Roaming\npm\node_modules\cordova\node_modules\ansi\lib\newlines.js:36:21)
at MuteStream.ondata (stream.js:31:26)
at emitOne (events.js:96:13)

你能帮我一下吗?

最佳答案

我通过卸载节点 7.10.0 并重新安装以前的版本 (6.10.3) 解决了此问题

关于cordova - 如何安装 Cordova ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40663916/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com