Getting error, Error: Cannot find module ‘express’ after npm install

后端 未结 7 1822
囚心锁ツ
囚心锁ツ 2020-12-23 20:52

I am new to both Node JS and express, and I have just installed npm in Windows 7.

I have installed express using the global flag:

npm install -g expr         


        
7条回答
  •  心在旅途
    2020-12-23 21:05

    To fix this you need to use:

    npm install -g express-generator@3

    It has been updated from the previous command:

    npm install -g express

提交回复
热议问题