node.js, Error: Cannot find module 'express'

后端 未结 18 1877
情话喂你
情话喂你 2020-12-02 08:57

I am new to Node.js, try to learn express to build my first web application. I got stuck on my very first sample code and need some help to get it running. Before I post th

18条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-02 09:43

    Unless you set Node_PATH, the only other option is to install express in the app directory, like npm install express --save. Express may already be installed but node cannot find it for some reason

提交回复
热议问题