I tried to install node modules using npm install. But I am getting the following error.
npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module 'dezalgo'
npm ERR! Require stack:
npm ERR! - C:\Program Files\nodejs\node_modules\npm\node_modules\readdir-scoped-modules\readdir.js
npm ERR! - C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-tree\rpt.js
npm ERR! - C:\Program Files\nodejs\node_modules\npm\lib\install.js
npm ERR! - C:\Program Files\nodejs\node_modules\npm\lib\npm.js
npm ERR! - C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
CodePudding user response:
npm i --save dezalgo --legacy-peer-deps
CodePudding user response:
Run the following command.
npm i dezalgo --force --save