I was just following these commands:
Node.js Error: Cannot find module 'request'
npm init
npm install --save request
node app.js
And now when I go to my project directory, all my files are gone. Is there anyway to get them back???
I was just following these commands:
Node.js Error: Cannot find module 'request'
npm init
npm install --save request
node app.js
And now when I go to my project directory, all my files are gone. Is there anyway to get them back???
TO clear your thoughts, following commands does not remove files.
npm init // Initialises the npm in your directory and creates package.json file.
npm install --save package_name // Install package in your directory in the node_module folder.
So, definitely, you have done something else, which has been causing directory removal or disappearance.
I would suggest you check trash.
Can you post history of commands you used? Maybe that would help me understand what happened exactly.