NODE_PATH 匹配 npm 根 [英] NODE_PATH matches the npm root

查看:190
本文介绍了NODE_PATH 匹配 npm 根的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用带有此命令的 yeoman 搭建项目的脚手架时出现此错误.

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

npm install generator-gulp-webapp --global

错误:

Yeoman Doctor
Running sanity checks on your system

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

我使用的是 Ubuntu 15.04 并且没有使用 sudo 命令安装 npm 和 node.

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

推荐答案

好像是用

sudo npm install generator-gulp-webapp --global

解决了问题.

这篇关于NODE_PATH 匹配 npm 根的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆