求教 cnpm 安装报错 install Couldn't read dependencies
发布于 6小时前 作者 SoaringTiger 46 次浏览 来自 问答

npm ERR! install Couldn’t read dependencies npm ERR! Linux 3.13.0-32-generic npm ERR! argv “node” “/usr/local/bin/npm” “–registry=https://registry.npm.taobao.org” “–cache=/root/.npm/.cache/cnpm” “–disturl=https://npm.taobao.org/dist” “–userconfig=/root/.cnpmrc” “install” npm ERR! node v0.12.0 npm ERR! npm v2.7.1

npm ERR! Invalid version: “0.2” npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! https://github.com/npm/npm/issues

npm ERR! Please include the following file with any support request: npm ERR! /web/www/abc/npm-debug.log

1 回复

解决了,问题是出在这个奇葩的行 npm ERR! Invalid version: “0.2” 现在必须把你的版本号写成3个数字 "0.2.0",然后就ok了 以前没这问题啊,是不是node 0.12新搞出来的?

回到顶部