Node Newbie Error – NPM Refusing to Install Package as a Dependency of Itself

46 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save-dev" "react-handsontable"
47 error node v6.9.4
48 error npm v3.10.10
49 error code ENOSELF
50 error Refusing to install react-handsontable as a dependency of itself
51 error If you need help, you may report this error at:
51 error <https://github.com/npm/npm/issues>

 

原因:

package.json里面的name和要安装的包重名

还有可能不是管理员权限

posted on 2017-02-22 14:22  到处都要注册  阅读(339)  评论(0编辑  收藏  举报

导航