Express module not found when installed with NPM

后端 未结 14 1542
庸人自扰
庸人自扰 2020-12-22 22:59

When I try to run the app.js file created by express, I get the following error:

$ node app.js

node.js:134
        throw e; // process.nextTick         


        
14条回答
  •  独厮守ぢ
    2020-12-22 23:08

    Finally with Linux a good way to do is to use the command : sudo apt-get install node-express

    But with express 4 we must use express-generator to make app skeleton, install it with 'npm install express-generator -g', and then run 'express myapp' command. see also install express

提交回复
热议问题