[关闭]
@ysongzybl 2015-09-15T21:35:35.000000Z 字数 299 阅读 1003

npm node no such file error

nodejs


Problem: run npm command gives error "/usr/bin/env: node: No such file or directory" #3911

Solution:

If you install from a package manager you bin may be called nodejs so you just need to symlink it like so
sudo ln -s /usr/bin/nodejs /usr/bin/node

Reference:

https://github.com/nodejs/node-v0.x-archive/issues/3911

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注