NODE_PATH matches the npm root

2019-06-10 17:39发布

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条回答
Anthone
2楼-- · 2019-06-10 18:17

It seems installing with

sudo npm install generator-gulp-webapp --global

solved the problem.

查看更多
登录 后发表回答