简体   繁体   中英

NPM install throws error internal/modules/cjs/loader.js:800 throw err;

I tried all the solutions. but it doesn't work.

I deleted the node_modules directory and the package-lock.json file, and then I tried to run $ npm install

npm install
internal/modules/cjs/loader.js:800
    throw err;
Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm\bin\node_modules\npm\bin\npm-cli.js'

Run below commands

 rm -rf node_modules
 npm install         

still not working then upgrade your node version and npm package

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM