npm list command throws error
npm ERR! extraneous: babel-generator /Users/zach/node_modules/babel-generator
npm ERR! error in /Users/zach/node_modules/babel-generator: ENOENT: no such file or directory, open '/Users/zach/node_modules/babel-generator/package.json'
npm ERR! extraneous: babel-template /Users/zach/node_modules/babel-template
npm ERR! error in /Users/zach/node_modules/babel-template: ENOENT: no such file or directory, open '/Users/zach/node_modules/babel-template/package.json'
npm ERR! extraneous: babel-traverse /Users/zach/node_modules/babel-traverse
npm ERR! error in /Users/zach/node_modules/babel-traverse: ENOENT: no such file or directory, open '/Users/zach/node_modules/babel-traverse/package.json'
npm ERR! extraneous: caching-transform /Users/zach/node_modules/caching-transform
npm ERR! error in /Users/zach/node_modules/caching-transform: ENOENT: no such file or directory, open '/Users/zach/node_modules/caching-transform/package.json'
Confirm the npm version first. I remember that there is a bug in one version of npm, so upgrade it to the highest version of your big version.
Then
rm -rf node_modules/
npm cache clean