node.js – Unable to use npm install

When I run my npm install command the following messages are displayed. Anyone have a solution?

Otherwise I use npm version 10.8.1 and Node version 20.16.0.

npm error code MODULE_NOT_FOUND
npm error path C:\Program Files\nodejs\node_modules\npm\node_modules\ip-address\node_modules\sprintf-js\package.json
npm error Cannot find module 'C:\Program Files\nodejs\node_modules\npm\node_modules\ip-address\node_modules\sprintf-js\src\sprintf.js'. Please verify that the package.json has a valid "main" entry
npm error A complete log of this run can be found in: C:\Users\Eric Lorryl SOBZE\AppData\Local\npm-cache\_logs\2024-08-27T09_59_17_392Z-debug-0.log

I tried uninstalling Node and npm, choco, etc. and then redo the installation normally. I checked the environment variables but still no results.

Read more here: Source link