Hey I've been trying to install "ws" module but when I run npm install ws
it gives following error,npm WARN enoent ENOENT:<Folder name> no such file or directory, open 'G:\Dead Simple\package.json'
Well I searched for solution , everybody answered it as you should have package.json
file in your project directory but being a beginner I really don't what to write in that file.How should I resolve it ?
It gives me exactly this output ...npm WARN enoent ENOENT: no such file or directory, open 'G:\Dead Simple\package.json'
npm WARN Dead Simple No description
npm WARN Dead Simple No repository field.
npm WARN Dead Simple No README data
npm WARN Dead Simple No license field.
You don't need to write anything. At the beginning of your project when you:
npm init
a package.json will be created, listing references to packages you have installed. Installing extra packages add them to your node_modules directory, and adds a reference to your package.json.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With