全部安裝Apache Cordova。我一直在試圖在Windows 10 PC上安裝Apache Cordova,並且我一直在反覆討論這個問題。我一直在遵循這三個指南來安裝Cordova: cordova.apache.org/docs/en/latest/guide/platforms/android/index.html無法使用「npm install -g cordova」
evothings.com/doc/build/cordova-install- windows.html
www.tutorialspoint.com/cordova/cordova_environment_setup.htm
我檢查了命令行和Git的Android Studio和JDK已全部成功安裝喜歡問教程上,我花了在SO上看到一些類似的帖子,其答案是使用「sudo npm install -g cordova」以及this post,但沒有運氣。 而這裏的我已經得到了錯誤:
npm WARN retry will retry, error on last attempt: Error: EBUSY: resource busy or locked, rename 'C:\Users\Ray\AppData\Local\Temp\npm-7756-015c0ec3 \registry.npmjs.org\path-parse\-\path-parse-1.0.5.tgz.2712739132' -> 'C:\Users\Ray\AppData\Local\Temp\npm-7756-015c0ec3\registry.npmjs.org\path-parse\-\path-parse-1.0.5.tgz'
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "cordova"
npm ERR! node v6.10.3
npm ERR! npm v3.10.10
npm ERR! tarball.destroy is not a function
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm WARN retry will retry, error on last attempt: Error: EBUSY: resource busy or locked, rename 'C:\Users\Ray\AppData\Local\Temp\npm-7756-015c0ec3\registry.npmjs.org\tty-browserify\-\tty-browserify-0.0.0.tgz.1810143622' -> 'C:\Users\Ray\AppData\Local\Temp\npm-7756-015c0ec3\registry.npmjs.org\tty-browserify\-\tty-browserify-0.0.0.tgz'
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "cordova"
npm ERR! node v6.10.3
npm ERR! npm v3.10.10
npm ERR! tarball.destroy is not a function
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm WARN retry will retry, error on last attempt: Error: EBUSY: resource busy or locked, rename 'C:\Users\Ray\AppData\Local\Temp\npm-7756-015c0ec3\registry.npmjs.org\tty-browserify\-\tty-browserify-0.0.0.tgz.709475096' -> 'C:\Users\Ray\AppData\Local\Temp\npm-7756-015c0ec3\registry.npmjs.org\tty-browserify\-\tty-browserify-0.0.0.tgz'
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "cordova"
npm ERR! node v6.10.3
npm ERR! npm v3.10.10
npm ERR! tarball.destroy is not a function
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
歡迎來到操作系統!發佈你的問題的第一條規則:不要把你的日誌放在屏幕截圖中。請更新您的問題,並將代碼括號內的日誌! –
完成。我的appologies。 – AlphaNull
您是否先安裝節點最新版本? &安裝節點後,您需要在命令行中輸入npm install -g cordova – Madpop