NPM ERR! enoent enoent: brak takiego pliku lub katalogu, otwarty
rm -rf node_modules
npm install
git commit package-lock.json
git push
Frantic Finch
rm -rf node_modules
npm install
git commit package-lock.json
git push
Have you created a package.json file? Maybe run this command first again.
C:\Users\Nuwanst\Documents\NodeJS\3.chat>npm init
It creates a package.json file in your folder.
Then run,
C:\Users\Nuwanst\Documents\NodeJS\3.chat>npm install socket.io --save
The --save ensures your module is saved as a dependency in your package.json file.