问题
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