Honey Barsainya
Honey Barsainya

Reputation: 93

Getting error while running npm-check-updates

I am getting below error while trying to execute below command

npm-check-updates

internal/modules/cjs/loader.js:905 throw err; ^

Error: Cannot find module '../../package.json' Require stack:

I see the location C:\Users\hbarsainya\AppData\Roaming\npm\node_modules\npm-check-updates\build\src\bin\cli.js exist. Can you help me solving this error?

Upvotes: 1

Views: 2015

Answers (1)

Honey Barsainya
Honey Barsainya

Reputation: 93

I found the workaround in location https://github.com/raineorshine/npm-check-updates/issues/990

I changed "../../package.json" to "../../../package.json" in /home/ledsun/.local/share/nvm/v17.0.1/lib/node_modules/npm-check-updates/build/src/bin/cli.js:11, then the ncu runs expected.

Upvotes: 0

Related Questions