gpt4 book ai didi

cordova - phonegap 在 Windows 上安装错误

转载 作者:行者123 更新时间:2023-12-04 00:24:04 24 4
gpt4 key购买 nike

我在我的 windows 机器上安装 phone gap 时遇到这个错误,

C:\>npm install -g phonegap
npm http GET https://registry.npmjs.org/phonegap
npm http 200 https://registry.npmjs.org/phonegap
npm http GET https://registry.npmjs.org/phonegap/-/phonegap-3.5.0-0.20.1.tgz
npm http 200 https://registry.npmjs.org/phonegap/-/phonegap-3.5.0-0.20.1.tgz
npm http GET https://registry.npmjs.org/cordova
npm http GET https://registry.npmjs.org/shelljs
npm http GET https://registry.npmjs.org/qrcode-terminal
npm http GET https://registry.npmjs.org/pluralize
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/prompt
npm http GET https://registry.npmjs.org/phonegap-build
npm http GET https://registry.npmjs.org/cordova-lib
npm http GET https://registry.npmjs.org/semver
npm http GET https://registry.npmjs.org/colors
npm http GET https://registry.npmjs.org/connect-phonegap
npm http 304 https://registry.npmjs.org/shelljs
npm http 304 https://registry.npmjs.org/cordova
npm http 304 https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/qrcode-terminal
npm http 304 https://registry.npmjs.org/pluralize
npm http 304 https://registry.npmjs.org/prompt
npm http 304 https://registry.npmjs.org/phonegap-build
npm http 304 https://registry.npmjs.org/semver
npm http 304 https://registry.npmjs.org/colors
npm http 304 https://registry.npmjs.org/connect-phonegap
npm http 304 https://registry.npmjs.org/cordova-lib
npm ERR! notarget No compatible version found: cordova-lib@'lorinbeer/cordova-li
b.git#pg.3.5.0'
npm ERR! notarget Valid install targets:
npm ERR! notarget ["0.21.2","0.21.3"]
npm ERR! notarget
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "phonegap"
npm ERR! cwd C:\
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! code ETARGET
npm ERR! Error: EPERM, open 'C:\npm-debug.log'
npm ERR! { [Error: EPERM, open 'C:\npm-debug.log'] errno: 50, code: 'EPERM', pa
th: 'C:\\npm-debug.log' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nod
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "phonegap"
npm ERR! cwd C:\
npm ERR! node -v v0.10.28
npm ERR! npm -v 1.4.9
npm ERR! path C:\npm-debug.log
npm ERR! code EPERM
npm ERR! errno 50
npm ERR! stack Error: EPERM, open 'C:\npm-debug.log'
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\npm-debug.log
npm ERR! not ok code 0

不知道该怎么办。请帮忙。

我尝试了一些操作,例如清除缓存和更新软件,但没有任何效果。我已经安装了 node.js 10.28 V

最佳答案

下载旧版本。我觉得新的有问题

npm install -g phonegap@3.4

关于cordova - phonegap 在 Windows 上安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24089167/

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