Node.js Error: Cannot find module express

前端 未结 15 1506
情话喂你
情话喂你 2020-12-22 18:56

I wrote my first node.js app, but it can\'t find express library:

C:\\ChatServer\\Server>node server.js

module.js:340
    throw err;
          ^
Error: C         


        
15条回答
  •  不思量自难忘°
    2020-12-22 19:11

    create one folder in your harddisk e.g sample1 and go to command prompt type :cd and gives the path of sample1 folder and then install all modules...

    npm install express

    npm install jade

    npm install socket.io

    and then whatever you are creating application save in sample1 folder

    try it...

提交回复
热议问题