[BUG] Error: Cannot find module 'figgy-pudding'
RomanKornev opened this issue · 0 comments
What / Why
After reinstalling npm, I can't run any npx command.
When
Any npx command
Where
Windows 10 x64
How
Current Behavior
Error when I run npx
Steps to Reproduce
$ npx
Expected Behavior
npx works
Who
- n/a
References
$ npx
Error: Cannot find module 'figgy-pudding'
Require stack:
- C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\node_modules\npm-pick-manifest\index.js
- C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\lib\git.js
- C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\lib\fetcher.js
- C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\lib\index.js
- C:\Program Files\nodejs\node_modules\npm\lib\utils\update-notifier.js
- C:\Program Files\nodejs\node_modules\npm\lib\cli.js
- C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:923:15)
at Function.Module._load (node:internal/modules/cjs/loader:768:27)
at Module.require (node:internal/modules/cjs/loader:995:19)
at require (node:internal/modules/cjs/helpers:92:18)
at Object. (C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\node_modules\npm-pick-manifest\index.js:3:22)
at Module._compile (node:internal/modules/cjs/loader:1091:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1120:10)
at Module.load (node:internal/modules/cjs/loader:971:32)
at Function.Module._load (node:internal/modules/cjs/loader:812:14)
at Module.require (node:internal/modules/cjs/loader:995:19)
C:\Program Files\nodejs\node_modules\npm\node_modules@npmcli\config\lib\index.js:163
throw new Error('call config.load() before reading values')
^
Error: call config.load() before reading values
at Config.get (C:\Program Files\nodejs\node_modules\npm\node_modules@npmcli\config\lib\index.js:163:13)
at process.errorHandler (C:\Program Files\nodejs\node_modules\npm\lib\utils\error-handler.js:171:32)
at process.emit (node:events:378:20)
at process._fatalException (node:internal/process/execution:163:25)
Error: Cannot find module 'figgy-pudding'
Require stack:
- C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\node_modules\npm-pick-manifest\index.js
- C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\lib\git.js
- C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\lib\fetcher.js
- C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\lib\index.js
- C:\Program Files\nodejs\node_modules\npm\lib\utils\update-notifier.js
- C:\Program Files\nodejs\node_modules\npm\lib\cli.js
- C:\Program Files\nodejs\node_modules\npm\bin\npx-cli.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:923:15)
at Function.Module._load (node:internal/modules/cjs/loader:768:27)
at Module.require (node:internal/modules/cjs/loader:995:19)
at require (node:internal/modules/cjs/helpers:92:18)
at Object. (C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\node_modules\npm-pick-manifest\index.js:3:22)
at Module._compile (node:internal/modules/cjs/loader:1091:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1120:10)
at Module.load (node:internal/modules/cjs/loader:971:32)
at Function.Module._load (node:internal/modules/cjs/loader:812:14)
at Module.require (node:internal/modules/cjs/loader:995:19)
C:\Program Files\nodejs\node_modules\npm\node_modules@npmcli\config\lib\index.js:163
throw new Error('call config.load() before reading values')
^
Error: call config.load() before reading values
at Config.get (C:\Program Files\nodejs\node_modules\npm\node_modules@npmcli\config\lib\index.js:163:13)
at process.errorHandler (C:\Program Files\nodejs\node_modules\npm\lib\utils\error-handler.js:171:32)
at process.emit (node:events:378:20)
at process._fatalException (node:internal/process/execution:163:25)