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