Appium appium mac 下面安装问题

roicel · 2013年12月05日 · 最后由 恒温 回复于 2013年12月05日 · 3568 次阅读

安装 node 后, 使用 npm install -g appium 报错,提示 fetch failed。该怎么解决?

npm http GET https://registry.npmjs.org/appium
npm http 304 https://registry.npmjs.org/appium
npm http GET https://registry.npmjs.org/appium/-/appium-0.12.1.tgz
npm http 404 https://registry.npmjs.org/appium/-/appium-0.12.1.tgz
npm ERR! fetch failed https://registry.npmjs.org/appium/-/appium-0.12.1.tgz
npm ERR! Error: 404 Not Found
npm ERR! at WriteStream. (/usr/local/Cellar/node/0.10.21/lib/node_modules/npm/lib/utils/fetch.js:57:12)
npm ERR! at WriteStream.EventEmitter.emit (events.js:117:20)
npm ERR! at fs.js:1596:14
npm ERR! at /usr/local/Cellar/node/0.10.21/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:103:5
npm ERR! at Object.oncomplete (fs.js:107: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 Darwin 13.0.0
npm ERR! command "/usr/local/Cellar/node/0.10.21/bin/node" "/usr/local/bin/npm" "install" "-g" "appium"
npm ERR! cwd /Users/roicel
npm ERR! node -v v0.10.21
npm ERR! npm -v 1.3.11
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/roicel/npm-debug.log
npm ERR! not ok code 0

共收到 3 条回复 时间 点赞

dist: {
shasum: "7639328095234c67d99e968e1332c6c554492bec",
tarball: "http://registry.npmjs.org/appium/-/appium-0.12.0.tgz"
},

0.12.0 有这个文件,但是为什么我的电脑会去取 0.12.1 这个呢?

https 你访问不了

为 npm 默认选择 http 方式,不选用 https
npm config set registry http://registry.npmjs.org

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册