npm install doesn't create node_modules directory

后端 未结 8 2114
故里飘歌
故里飘歌 2020-12-05 13:07

I am trying to do a homework for a mongodb uni course. They gave us some files, instructions are:

run npm install mongodb then node app.js<

8条回答
  •  余生分开走
    2020-12-05 13:45

    For node_modules you have to follow the below steps

    1) In Command prompt -> Goto your project directory.

    2) Command :npm init

    3) It asks you to set up your package.json file

    4) Command: npm install or npm update

提交回复
热议问题