Issues with installing Express.JS in Windows 7

前端 未结 5 1064
北恋
北恋 2021-02-13 13:30

I have installed Node.js through the installer on their webpage and added it\'s path to my environment variable so I can use node and npm through the c

5条回答
  •  渐次进展
    2021-02-13 14:30

    Just want to add the following: instead of first installing it globally using:

    npm install express -g

    And then moving it, like the accepted answer says (which is just silly), just simply install it within node js:

    npm install express
    

    -g is for global, you want it locally so NodeJS can access it.

提交回复
热议问题