express command not found in bash after installing it with npm

后端 未结 7 1331
自闭症患者
自闭症患者 2020-12-23 11:53

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

node
mongodb-server
npm
express
mongoose

now, trying

7条回答
  •  情书的邮戳
    2020-12-23 12:41

    Starting from express 4.00 you also need to install express generator with:

    npm install -g express-generator
    

    Only after this will you be able to run express as a command!

    For confirmation see: ExpressJS.com - Migrating to Express 4

提交回复
热议问题