npm install appname -g bash: command not found

2019-09-13 21:53发布

Upon trying to install express via npm, bash was simply returning a command not found statement upon running any node module in the shell directly. I went through countless resources and forums to locate the issue and was not succesfull.

1条回答
▲ chillily
2楼-- · 2019-09-13 22:33

This seemed to be the solution for me. I ran the below statement and then proceeded to reinstall express as sudo:

chmod 777 /usr/local/lib

sudo install express -g

Run both commands respectively.

查看更多
登录 后发表回答