- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在尝试从命令行使用 npm 下载phonegap,我总是遇到 Node 版本错误:4.0.0 和 4.1.0 具体来说: this
我使用公司代理,无法更改连接。现在将 Node 版本更改为:0.10.0 我收到这些错误:
npm ERR! Error: ENOENT, open 'C:\Documents and Settings\gcappella\node_modules\p
honegap\node_modules\prompt\node_modules\utile\node_modules\mkdirp\test\return_s
ync.js'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>
npm ERR! System Windows_NT 5.1.2600
npm ERR! command "C:\\Programmi\\nodejs\\\\node.exe" "C:\\Programmi\\nodejs\\nod
e_modules\\npm\\bin\\npm-cli.js" "install" "phonegap"
npm ERR! cwd C:\Documents and Settings\gcappella
npm ERR! node -v v0.10.0
npm ERR! npm -v 1.2.14
npm ERR! path C:\Documents and Settings\gcappella\node_modules\phonegap\node_mod
ules\prompt\node_modules\utile\node_modules\mkdirp\test\return_sync.js
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! error rolling back Error: ENOTEMPTY, rmdir 'C:\Documents and Settings\g
cappella\node_modules\phonegap\node_modules\prompt\node_modules\utile\node_modul
es\i\test\inflector'
npm ERR! error rolling back utile@0.2.1 { [Error: ENOTEMPTY, rmdir 'C:\Document
s and Settings\gcappella\node_modules\phonegap\node_modules\prompt\node_modules\
utile\node_modules\i\test\inflector']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: 'C:\\Documents and Settings\\gcappella\\node
_modules\\phonegap\\node_modules\\prompt\\node_modules\\utile\\node_modules\\i\\
test\\inflector' }
npm ERR! error rolling back Error: ENOTEMPTY, rmdir 'C:\Documents and Settings\g
cappella\node_modules\phonegap\node_modules\prompt\node_modules\utile\node_modul
es\i\test\inflector'
npm ERR! error rolling back prompt@0.2.11 { [Error: ENOTEMPTY, rmdir 'C:\Docume
nts and Settings\gcappella\node_modules\phonegap\node_modules\prompt\node_module
s\utile\node_modules\i\test\inflector']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: 'C:\\Documents and Settings\\gcappella\\node
_modules\\phonegap\\node_modules\\prompt\\node_modules\\utile\\node_modules\\i\\
test\\inflector' }
npm ERR! error rolling back Error: ENOTEMPTY, rmdir 'C:\Documents and Settings\g
cappella\node_modules\phonegap\node_modules\prompt\node_modules\utile\node_modul
es\ncp\test'
npm ERR! error rolling back ncp@0.4.2 { [Error: ENOTEMPTY, rmdir 'C:\Documents
and Settings\gcappella\node_modules\phonegap\node_modules\prompt\node_modules\ut
ile\node_modules\ncp\test']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: 'C:\\Documents and Settings\\gcappella\\node
_modules\\phonegap\\node_modules\\prompt\\node_modules\\utile\\node_modules\\ncp
\\test' }
npm ERR! Error: ENOENT, lstat 'C:\Documents and Settings\gcappella\node_modules\
phonegap\node_modules\prompt\node_modules\utile\node_modules\i\test\inflector\me
thods-test.js'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>
npm ERR! System Windows_NT 5.1.2600
npm ERR! command "C:\\Programmi\\nodejs\\\\node.exe" "C:\\Programmi\\nodejs\\nod
e_modules\\npm\\bin\\npm-cli.js" "install" "phonegap"
npm ERR! cwd C:\Documents and Settings\gcappella
npm ERR! node -v v0.10.0
npm ERR! npm -v 1.2.14
npm ERR! path C:\Documents and Settings\gcappella\node_modules\phonegap\node_mod
ules\prompt\node_modules\utile\node_modules\i\test\inflector\methods-test.js
npm ERR! fstream_path C:\Documents and Settings\gcappella\node_modules\phonegap\
node_modules\prompt\node_modules\utile\node_modules\i\test\inflector\methods-tes
t.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack C:\Programmi\nodejs\node_modules\npm\node_modules\fstream
\lib\writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:93:15)
npm ERR! error rolling back Error: ENOTEMPTY, rmdir 'C:\Documents and Settings\g
cappella\node_modules\phonegap\node_modules\connect-phonegap\res\middleware\cord
ova'
npm ERR! error rolling back phonegap@5.3.1+cordova.5.3.1 { [Error: ENOTEMPTY, r
mdir 'C:\Documents and Settings\gcappella\node_modules\phonegap\node_modules\con
nect-phonegap\res\middleware\cordova']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: 'C:\\Documents and Settings\\gcappella\\node
_modules\\phonegap\\node_modules\\connect-phonegap\\res\\middleware\\cordova' }
npm ERR! Error: No compatible version found: glob@'^5.0.14'
npm ERR! Valid install targets:
npm ERR! ["1.1.0","2.0.9","2.0.8","2.0.7","2.1.0","3.0.0","3.0.1","3.1.0","3.1.1
","3.1.2","3.1.3","3.1.4","3.1.5","3.1.6","3.1.7","3.1.9","3.1.10","3.1.11","3.1
.12","3.1.13","3.1.14","3.1.15","3.1.16","3.1.17","3.1.18","3.1.19","3.1.20","3.
1.21","3.2.0","3.2.1","3.2.3","3.2.4","3.2.5","3.2.6","3.2.7","3.2.8","3.2.9","3
.2.10","3.2.11","4.0.0","4.0.1","4.0.2","4.0.3","4.0.4","4.0.5","4.0.6","4.1.2-b
eta","4.1.2","4.1.3","4.1.4","4.1.5","4.1.6","4.2.0","4.2.1","4.2.2","4.3.0","4.
3.1","4.3.2","4.3.3","4.3.4","4.3.5","4.4.0","4.4.2","4.5.0","5.0.0","4.5.1","5.
0.1","4.5.2","5.0.2","4.5.3","5.0.3","5.0.4","5.0.5","5.0.6","5.0.7","5.0.9","5.
0.10","5.0.11","5.0.12","5.0.13","5.0.14"]
npm ERR! at installTargetsError (C:\Programmi\nodejs\node_modules\npm\lib\ca
che.js:682:10)
npm ERR! at C:\Programmi\nodejs\node_modules\npm\lib\cache.js:597:10
npm ERR! at saved (C:\Programmi\nodejs\node_modules\npm\node_modules\npm-reg
istry-client\lib\get.js:138:7)
npm ERR! at Object.oncomplete (fs.js:93:15)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>
npm ERR! System Windows_NT 5.1.2600
npm ERR! command "C:\\Programmi\\nodejs\\\\node.exe" "C:\\Programmi\\nodejs\\nod
e_modules\\npm\\bin\\npm-cli.js" "install" "phonegap"
npm ERR! cwd C:\Documents and Settings\gcappella
npm ERR! node -v v0.10.0
npm ERR! npm -v 1.2.14
npm http GET http://registry.npmjs.org/wordwrap
npm http GET http://registry.npmjs.org/request
npm http 304 http://registry.npmjs.org/request
npm http 200 http://registry.npmjs.org/wordwrap
npm http GET http://registry.npmjs.org/request/-/request-2.11.4.tgz
npm http 200 http://registry.npmjs.org/request/-/request-2.11.4.tgz
npm http GET http://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz
npm http 200 http://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz
npm http GET http://registry.npmjs.org/abbrev
npm http 200 http://registry.npmjs.org/abbrev
npm http GET http://registry.npmjs.org/abbrev/-/abbrev-1.0.7.tgz
npm http 200 http://registry.npmjs.org/abbrev/-/abbrev-1.0.7.tgz
npm http GET http://registry.npmjs.org/shelljs/0.3.0
npm http GET http://registry.npmjs.org/semver
npm http GET http://registry.npmjs.org/cordova-js/4.1.1
npm http GET http://registry.npmjs.org/tar/1.0.2
npm http GET http://registry.npmjs.org/cordova-registry-mapper
npm http GET http://registry.npmjs.org/unorm/1.3.3
npm http GET http://registry.npmjs.org/cordova-serve
npm http GET http://registry.npmjs.org/valid-identifier/0.0.1
npm http GET http://registry.npmjs.org/dep-graph/1.1.0
npm http GET http://registry.npmjs.org/osenv/0.1.0
npm http GET http://registry.npmjs.org/npm
npm http GET http://registry.npmjs.org/xcode/0.8.0
npm http GET http://registry.npmjs.org/elementtree/0.1.6
npm http GET http://registry.npmjs.org/npmconf
npm http GET http://registry.npmjs.org/request/2.47.0
npm http GET http://registry.npmjs.org/init-package-json
npm http GET http://registry.npmjs.org/properties-parser/0.2.3
npm http GET http://registry.npmjs.org/rc/0.5.2
npm http GET http://registry.npmjs.org/glob/4.0.6
npm http GET http://registry.npmjs.org/plist/1.1.0
npm http GET http://registry.npmjs.org/aliasify
npm http GET http://registry.npmjs.org/bplist-parser/0.0.6
npm http GET http://registry.npmjs.org/cordova-app-hello-world/3.9.0
npm http 200 http://registry.npmjs.org/cordova-registry-mapper
npm http 200 http://registry.npmjs.org/shelljs/0.3.0
npm http 200 http://registry.npmjs.org/cordova-js/4.1.1
npm http GET http://registry.npmjs.org/cordova-registry-mapper/-/cordova-registr
y-mapper-1.1.11.tgz
npm http 200 http://registry.npmjs.org/cordova-serve
npm http 200 http://registry.npmjs.org/semver
npm http 200 http://registry.npmjs.org/tar/1.0.2
npm http GET http://registry.npmjs.org/cordova-js/-/cordova-js-4.1.1.tgz
npm http GET http://registry.npmjs.org/shelljs/-/shelljs-0.3.0.tgz
npm http 200 http://registry.npmjs.org/valid-identifier/0.0.1
npm http 200 http://registry.npmjs.org/dep-graph/1.1.0
npm http GET http://registry.npmjs.org/tar/-/tar-1.0.2.tgz
npm http 200 http://registry.npmjs.org/unorm/1.3.3
npm http 200 http://registry.npmjs.org/npmconf
npm http GET http://registry.npmjs.org/valid-identifier/-/valid-identifier-0.0.1
.tgz
npm http GET http://registry.npmjs.org/dep-graph/-/dep-graph-1.1.0.tgz
npm http GET http://registry.npmjs.org/unorm/-/unorm-1.3.3.tgz
npm http 200 http://registry.npmjs.org/osenv/0.1.0
npm http 200 http://registry.npmjs.org/request/2.47.0
npm http 200 http://registry.npmjs.org/xcode/0.8.0
npm http 200 http://registry.npmjs.org/init-package-json
npm http GET http://registry.npmjs.org/osenv/-/osenv-0.1.0.tgz
npm http GET http://registry.npmjs.org/request/-/request-2.47.0.tgz
npm http 200 http://registry.npmjs.org/elementtree/0.1.6
npm http GET http://registry.npmjs.org/xcode/-/xcode-0.8.0.tgz
npm http 200 http://registry.npmjs.org/rc/0.5.2
npm http 200 http://registry.npmjs.org/npm
npm http 200 http://registry.npmjs.org/aliasify
npm http 200 http://registry.npmjs.org/plist/1.1.0
npm http 200 http://registry.npmjs.org/glob/4.0.6
npm http 200 http://registry.npmjs.org/properties-parser/0.2.3
npm http GET http://registry.npmjs.org/elementtree/-/elementtree-0.1.6.tgz
npm http 200 http://registry.npmjs.org/cordova-registry-mapper/-/cordova-registr
y-mapper-1.1.11.tgz
npm http 200 http://registry.npmjs.org/cordova-js/-/cordova-js-4.1.1.tgz
npm http 200 http://registry.npmjs.org/tar/-/tar-1.0.2.tgz
npm http 200 http://registry.npmjs.org/cordova-app-hello-world/3.9.0
npm http 200 http://registry.npmjs.org/unorm/-/unorm-1.3.3.tgz
npm http 200 http://registry.npmjs.org/valid-identifier/-/valid-identifier-0.0.1
.tgz
npm http 200 http://registry.npmjs.org/dep-graph/-/dep-graph-1.1.0.tgz
npm http 200 http://registry.npmjs.org/osenv/-/osenv-0.1.0.tgz
npm http 200 http://registry.npmjs.org/xcode/-/xcode-0.8.0.tgz
npm http 200 http://registry.npmjs.org/request/-/request-2.47.0.tgz
npm http 200 http://registry.npmjs.org/elementtree/-/elementtree-0.1.6.tgz
npm http GET http://registry.npmjs.org/properties-parser/-/properties-parser-0.2
.3.tgz
npm http GET http://registry.npmjs.org/glob/-/glob-4.0.6.tgz
npm http GET http://registry.npmjs.org/plist/-/plist-1.1.0.tgz
npm http 200 http://registry.npmjs.org/properties-parser/-/properties-parser-0.2
.3.tgz
npm http 200 http://registry.npmjs.org/plist/-/plist-1.1.0.tgz
npm http 200 http://registry.npmjs.org/glob/-/glob-4.0.6.tgz
npm http 200 http://registry.npmjs.org/shelljs/-/shelljs-0.3.0.tgz
npm http GET http://registry.npmjs.org/rc/-/rc-0.5.2.tgz
npm http 200 http://registry.npmjs.org/rc/-/rc-0.5.2.tgz
npm http 200 http://registry.npmjs.org/bplist-parser/0.0.6
npm http GET http://registry.npmjs.org/cordova-app-hello-world/-/cordova-app-hel
lo-world-3.9.0.tgz
npm http 200 http://registry.npmjs.org/cordova-app-hello-world/-/cordova-app-hel
lo-world-3.9.0.tgz
npm http GET http://registry.npmjs.org/bplist-parser/-/bplist-parser-0.0.6.tgz
npm http 200 http://registry.npmjs.org/bplist-parser/-/bplist-parser-0.0.6.tgz
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Documents and Settings\gcappella\npm-debug.log
npm ERR! not ok code 0
谁能帮助一个可怜的人?
最佳答案
您确定此端口 8080
可用吗?
尝试更改端口号,也许会对你有帮助,兄弟...
关于node.js - npm下载phonegap多次报错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32628478/
我正在使用npm v5.3.0。 现在,我想将npm更新到v5.4.1。要执行此操作,请在终端中键入以下内容: npm install -g npm 没有任何错误。但是,当我键入npm -v时,得到的
我已经使用 vue-cli 两个星期了,直到今天一切正常。我在本地建立这个项目。 https://drive.google.com/open?id=0BwGw1zyyKjW7S3RYWXRaX24tQ
有什么方法可以更改或重置全局 npm 注册表。 感谢您的帮助。 最佳答案 在终端中运行以下命令以恢复到默认注册表 npm config set registry https://registry.np
查看 npm 的 documentation , 'i' 是 'install' 的别名,是否有任何情况下最好使用完整的 'npm install'? 最佳答案 两者之间没有具体区别。这只是一个懒惰的
目前,每次将更改推送到 GIT 存储库时,我都会发布新版本的 NPM 包。我的大部分更改只是愚蠢的补丁。我使用 NPM 作为工具,在我的许多项目中启用版本控制和代码重用。经过一个月的工作,我已经完成了
我运行的时候总是报错 npm install 谁知道怎么解决 npm ERR! Darwin 13.0.0 npm ERR! argv "/usr/local/bin/node" "/usr/b
“npm uninstall packageName”删除包并更新 package.json 文件。 但是来自 npm 文档 - To remove a package from the depend
我的背景更熟悉 composer .我收到 gulp (等)进行构建过程和学习 node以及如何使用 npm我走的时候。 很奇怪(再次来自 composer 背景)composer.lock默认情况下
我看到的许多 npm 模块名称前面都添加了技术名称,例如 react-native 或 jquery 等。由于我们已经在 package.json 文件中提供了关键字,因此遵循此约定有什么好处。我问这
我检查了 connect-privkey-to-provider模块在依赖项中。但是,它一直在说 模块 'connect-privkey-to-provider' 是无关的 npm 和 找不到模块 '
我正在进行持续集成并发现了 npm ci命令。 我不知道在我的工作流程中使用此命令有什么优势。 速度更快吗?这会让测试变得更难吗?好吗? 最佳答案 来自the official documentati
我有一个要发布到 NPM 的包,其中还包含如下所示的演示目录: . +-- demo | +-- src | | +-- main.js | +-- package.json +--
如果我打开集成终端并运行 npm -v 它会起作用。 但是,如果我直接从 NPM SCRIPTS 运行它,它就不起作用。 评论中要求的更多详细信息 //由 Fogmeister 编辑 我也有这个问题,
我正在尝试安装 gulp,当我写 npm install 时我得到了这个问题: npm ERR! code 1 npm ERR! path D:\www\wegrow\node_modules\nod
这个问题已经有答案了: npm test --codecoverage doesn't generate report (3 个回答) 已关闭 4 年前。 当我执行npm test --code-co
我能够运行 npm start 和 npm run start 命令。我用过create-react-app创建我的应用程序。为了在 CSS 模块中进行配置更改,我想运行 npmject 但它会抛出错
我正在使用npm run script执行“构建”和“测试”等任务。 例如,我的 package.json 如下所示: { "name": "fulfillment-service", "ve
我第一次将 npm 模块添加到我的项目中(jshint、optimg、jpgo)。我注意到有些项目,当我做 npm 运行 [名称] ,给出“sh: [name]: command not found”
我已经在 Windows 上安装了 Ubuntu Bash。我已经有 nodejs和 npm在我的 Windows 机器上 C:\Program Files\nodejs .在 Windows 的 b
我正在尝试运行 npm install bitgo命令但在终端上出现以下错误, npm ERR! code EMFILE npm ERR! syscall spawn git npm ERR! pat
我是一名优秀的程序员,十分优秀!