Skip to content
This repository has been archived by the owner on Sep 11, 2021. It is now read-only.

Cannot find module 'npm-windows-upgrade.js' #166

Open
wayaway-jtm opened this issue Feb 18, 2021 · 0 comments
Open

Cannot find module 'npm-windows-upgrade.js' #166

wayaway-jtm opened this issue Feb 18, 2021 · 0 comments

Comments

@wayaway-jtm
Copy link

PS C:\Users\jmccarthy> npm-windows-upgrade
node:internal/modules/cjs/loader:926
  throw err;
  ^

Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm-windows-upgrade\bin\npm-windows-upgrade.js'
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:923:15)
    at Function.Module._load (node:internal/modules/cjs/loader:768:27)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12)
    at node:internal/main/run_main_module:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

This folder is missing: C:\Program Files\nodejs\node_modules\npm-windows-upgrade even after re-installing.

The package is listed in npm ls -g

I am using NVM for Windows (repo)

I found the file in C:\Users\jmccarthy\AppData\Roaming\npm\node_modules\npm-windows-upgrade\bin so it might just be a problem with NVM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant