I'm new to Node and after successfully running NPM init for a node project, attempted to install lodash through:
npm install lodash --save
However, after running that command, I got the error:
npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module 'internal/fs'
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/johnwolfe/.npm/_logs/2018-01-07T05_07_16_644Z-debug.log
I've also tried just running NPM install and I get the same error. What possible explanation is there for this error and how can I resolve it? I've tried other solutions on the web and nothing is working.
This is my package.json file:
{
"name": "notes",
"version": "1.0.0",
"description": "",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC"
}
Thank you for any insight!