express command not found in bash after installing

2019-01-30 19:48发布

just installed new ubuntu vm to test around with node installed things in this order:

node
mongodb-server
npm
express
mongoose

now, trying to create a new app i noticed express cannot be used in the shell. express -v returns express: command not found

i installed npm like this

curl http://npmjs.org/install.sh | sudo sh

and i installed express this way

npm install express

any ideas?

7条回答
我只想做你的唯一
2楼-- · 2019-01-30 20:31

IF you are running windows:

export NODE_PATH="C:\Users\IMarek\AppData\Roaming\npm\node_modules"
查看更多
登录 后发表回答