[英]ender.js install fails
I'm trying to install ender.js. 我正在尝试安装ender.js。 I've run the following command 我运行了以下命令
sudo npm install ender -g
but after the install (with no error), I can't access ender command line. 但是安装后(没有错误),我无法访问ender命令行。 I have the latest node and npm install (via brew) 我有最新的节点和npm安装(通过brew)
anybody ran into this problem? 有人遇到这个问题吗?
you just need to add /usr/local/share/npm/bin
to your path. 您只需要在路径中添加/usr/local/share/npm/bin
。
Try adding the following line to your bash profile (in ~/.profile
, or ~/.bashrc
, etc.): 尝试将以下行添加到您的bash配置文件中(在~/.profile
或~/.bashrc
等中):
PATH=$PATH:/usr/local/share/npm/bin
Then source the file to your current environment with . ~/.profile
然后使用将该文件导出到当前环境. ~/.profile
. ~/.profile
. . ~/.profile
。 And that should fix your issue. 那应该可以解决您的问题。
Going forward, I would recommend using nvm
to manage your node versions, and npm installs. 展望未来,我建议使用nvm
来管理您的节点版本,并安装npm。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.