Express module not found when installed with NPM

后端 未结 14 1629
庸人自扰
庸人自扰 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:17

    Use local installs for require(), and global installs for command-line apps.

    If you need both, use the npm link command.

提交回复
热议问题