Can't upgrade package dependencies [Windows10]
-
Preparing for an upgrade to latest msr build, and got stuck on upgrade package dependencies.
Then I remembered that this was the case last time the upgrade package dependencies was required also. After a lot of trying i gave up and did a clean install of everything. But since this happens again I would love to get this sorted out.It might be that the manual regarding node js should be updated. Or more noob-proof? I have a vague memory that the very first install required som searching to get node js up and running.
What I have done so far.
Stop reactor service.
Delete package-lock.json
Uninstall reactor service. (command prompt with admin)c:\reactor>node tools\install_reactor_windows_service.js -u . Uninstalling Reactor service c:\reactor Reactor service uninstalled.
Unzip new version.
Delete package-lock.json (again)c:\reactor>npm install --no-save --omit dev node:internal/modules/cjs/loader:936 throw err; ^ Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } node:internal/modules/cjs/loader:936 throw err; ^ Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js' ←[90m at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)←[39m ←[90m at Function.Module._load (node:internal/modules/cjs/loader:778:27)←[39m ←[90m at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)←[39m ←[90m at node:internal/main/run_main_module:17:47←[39m { code: ←[32m'MODULE_NOT_FOUND'←[39m, requireStack: [] }
Going wild and testing command from new installations.
c:\reactor>npm install --no-save --omit dev node:internal/modules/cjs/loader:936 throw err; ^ Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } node:internal/modules/cjs/loader:936 throw err; ^ Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js' ←[90m at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)←[39m ←[90m at Function.Module._load (node:internal/modules/cjs/loader:778:27)←[39m ←[90m at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)←[39m ←[90m at node:internal/main/run_main_module:17:47←[39m { code: ←[32m'MODULE_NOT_FOUND'←[39m, requireStack: [] } c:\reactor>npm install --loglevel error --no-save --omit dev node:internal/modules/cjs/loader:936 throw err; ^ Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } node:internal/modules/cjs/loader:936 throw err; ^ Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js' ←[90m at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)←[39m ←[90m at Function.Module._load (node:internal/modules/cjs/loader:778:27)←[39m ←[90m at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)←[39m ←[90m at node:internal/main/run_main_module:17:47←[39m { code: ←[32m'MODULE_NOT_FOUND'←[39m, requireStack: [] }
What module is needed?
Were to find it?
What to do with it? -
Finally!
Tried out almost every google result I could find I found something that worked.
Repair the nodejs install from windows control panel did the trick
c:\reactor>npm install --no-save --omit dev npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead. added 1 package, removed 6 packages, changed 3 packages, and audited 91 packages in 6s 13 packages are looking for funding run `npm fund` for details found 0 vulnerabilities npm notice npm notice New minor version of npm available! 8.11.0 -> 8.18.0 npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.18.0 npm notice Run npm install -g npm@8.18.0 to update! npm notice c:\reactor>
-
Yeah, your NPM was broken.
-
Yeah, your NPM was broken.
@toggledbits
Any idea what could cause this? -
I trust the government more than I trust Windows. I'll leave it at that.
-
@toggledbits said in Can't upgrade package dependencies [Windows10]:
I trust the government more than I trust Windows. I'll leave it at that.
Hard choice...
-
T toggledbits locked this topic on