NODE_PATH matches the npm root

十年热恋 提交于 2019-12-08 11:10:47

问题


I get this error when I try scaffolding a project using yeoman with this command.

npm install generator-gulp-webapp --global

The error:

Yeoman Doctor
Running sanity checks on your system

✖ NODE_PATH matches the npm root
npm global root value is not in your NODE_PATH

I am using Ubuntu 15.04 and have not installed npm and node with the sudo command.


回答1:


It seems installing with

sudo npm install generator-gulp-webapp --global

solved the problem.



来源:https://stackoverflow.com/questions/31234873/node-path-matches-the-npm-root

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!