Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ENOENT, no such file or directory

Have you created a package.json file? Maybe run this command first again.

C:UsersNuwanstDocumentsNodeJS3.chat>npm init

It creates a package.json file in your folder.

Then run,

C:UsersNuwanstDocumentsNodeJS3.chat>npm install socket.io --save

The --save ensures your module is saved as a dependency in your package.json file.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #file #directory
ADD COMMENT
Topic
Name
5+6 =