Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

[Bug] Erro ao usar o npm -v

Eu tava conseguindo usar o npm normal, e agora ta aparecendo isso quando eu coloco npm ou npx,o node -v ta funcionando

node:internal/modules/cjs/loader:995 const err = new Error(message); ^

Error: Cannot find module 'yallist' Require stack:

  • C:\Users\Lucas Nather\AppData\Roaming\npm\node_modules\npm\node_modules\lru-cache\index.js
  • C:\Users\Lucas Nather\AppData\Roaming\npm\node_modules\npm\node_modules\semver\classes\range.js
  • C:\Users\Lucas Nather\AppData\Roaming\npm\node_modules\npm\node_modules\semver\classes\comparator.js
  • C:\Users\Lucas Nather\AppData\Roaming\npm\node_modules\npm\node_modules\semver\index.js
  • C:\Users\Lucas Nather\AppData\Roaming\npm\node_modules\npm\lib\utils\unsupported.js
  • C:\Users\Lucas Nather\AppData\Roaming\npm\node_modules\npm\lib\cli.js
  • C:\Users\Lucas Nather\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js ←[90m at Module.resolveFilename (node:internal/modules/cjs/loader:995:15)←[39m ←[90m at Module.load (node:internal/modules/cjs/loader:841:27)←[39m ←[90m at Module.require (node:internal/modules/cjs/loader:1061:19)←[39m ←[90m at require (node:internal/modules/cjs/helpers:103:18)←[39m at Object. ←[90m(C:\Users\Lucas Nather\←[39mAppData\Roaming\npm\node_modules\←[4mnpm←[24m\node_modules\←[4mlru-cache←[24m\index.js:4:17←[90m)←[39m ←[90m at Module.compile (node:internal/modules/cjs/loader:1159:14)←[39m ←[90m at Module.extensions..js (node:internal/modules/cjs/loader:1213:10)←[39m ←[90m at Module.load (node:internal/modules/cjs/loader:1037:32)←[39m ←[90m at Module.load (node:internal/modules/cjs/loader:878:12)←[39m ←[90m at Module.require (node:internal/modules/cjs/loader:1061:19)←[39m { code: ←[32m'MODULENOT_FOUND'←[39m, requireStack: [ ←[32m'C:\Users\Lucas Nather\AppData\Roaming\npm\node_modules\npm\node_modules\lru-cache\index.js'←[39m, ←[32m'C:\Users\Lucas Nather\AppData\Roaming\npm\node_modules\npm\node_modules\semver\classes\range.js'←[39m, ←[32m'C:\Users\Lucas Nather\AppData\Roaming\npm\node_modules\npm\node_modules\semver\classes\comparator.js'←[39m, ←[32m'C:\Users\Lucas Nather\AppData\Roaming\npm\node_modules\npm\node_modules\semver\index.js'←[39m, ←[32m'C:\Users\Lucas Nather\AppData\Roaming\npm\node_modules\npm\lib\utils\unsupported.js'←[39m, ←[32m'C:\Users\Lucas Nather\AppData\Roaming\npm\node_modules\npm\lib\cli.js'←[39m, ←[32m'C:\Users\Lucas Nather\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js'←[39m ] }
1 resposta
solução!

Desisnstala o node e ver esse vídeo https://www.youtube.com/watch?v=95zwKjgpMcE

eu tava desesperado e deu certo

pra quem ta com esse problema cannot find module 'c:\nodejs\node_modules\npm\bin\npm-cli.js' ,também funciona!!!