Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading node: "Target version not found" #295

Open
ackvf opened this issue Jan 23, 2024 · 0 comments
Open

Upgrading node: "Target version not found" #295

ackvf opened this issue Jan 23, 2024 · 0 comments

Comments

@ackvf
Copy link

ackvf commented Jan 23, 2024

Hi, I just upgraded three node/18.x versions to latest, effectively consolidating them into one. I attempted the same with node/16.x, but after first upgrading 16.13.0 I cannot proceed further and not even this version disappeared from the list after being successfully upgraded. I also upgraded nvs, with no difference. Attempting it second time gives this error:

image

Previously I run this:

:\Users\Qwerty\repos\BlenderBox\enrollwise-fe>nvs upgrade 18.18.2
Upgrading node/18.18.2/x64 to 18.19.0...
Downloading [#########################################################################################################################################] 100%
Extracting  [#########################################################################################################################################] 100%
Warning: Failed to fix npm cmd shims: Cannot find module 'fs/promises'
Require stack:
- C:\Users\Qwerty\AppData\Local\nvs\node\18.19.0\x64\node_modules\npm\node_modules\cmd-shim\lib\index.js
- C:\Users\Qwerty\AppData\Local\nvs\lib\addRemove.js
- C:\Users\Qwerty\AppData\Local\nvs\lib\upgrade.js
- C:\Users\Qwerty\AppData\Local\nvs\lib\main.js
- C:\Users\Qwerty\AppData\Local\nvs\lib\index.js
Added at: %LOCALAPPDATA%\nvs\node\18.19.0\x64\node.exe
Skipping  : corepack (source=0.19.0, target=0.22.0)
Installing: node-gyp (10.0.1)
Skipping  : npm (source=9.8.1, target=10.2.3)
Installing: pnpm (8.10.5)
Installing: vercel (32.5.6)
npm WARN deprecated [email protected]: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
Installing: yarn (1.22.21)
%LOCALAPPDATA%\nvs\default -> %LOCALAPPDATA%\nvs\node\18.19.0\x64
PATH -= %LOCALAPPDATA%\nvs\node\18.18.2\x64
PATH += %LOCALAPPDATA%\nvs\node\18.19.0\x64
- C:\Users\Qwerty\AppData\Local\nvs\node\18.18.2\x64

C:\Users\Qwerty\repos\BlenderBox\enrollwise-fe>nvs upgrade 18.16
Upgrading node/18.16.0/x64 to 18.19.0...
Skipping  : corepack (source=0.17.0, target=0.22.0)
Skipping  : node-gyp (source=9.4.0, target=10.0.1)
Skipping  : npm (source=9.5.1, target=10.2.3)
Skipping  : pnpm (source=8.6.2, target=8.14.3)
Skipping  : yarn (source=1.22.19, target=1.22.21)
- C:\Users\Qwerty\AppData\Local\nvs\node\18.16.0\x64

C:\Users\Qwerty\repos\BlenderBox\enrollwise-fe>nvs upgrade 16.13
Upgrading node/16.13.0/x64 to 16.20.2...
Downloading [#########################################################################################################################################] 100%
Extracting  [#########################################################################################################################################] 100%

C:\Users\Qwerty\repos\BlenderBox\enrollwise-fe>nvs upgrade 16.15
Upgrading node/16.15.0/x64 to 16.20.2...
Target version not found: node/16.15.0/x64

C:\Users\Qwerty\repos\BlenderBox\enrollwise-fe>nvs upgrade 16.20
Upgrading node/16.20.2/x64 to 16.20.2...
Target version not found: node/16.20.2/x64

C:\Users\Qwerty\repos\BlenderBox\enrollwise-fe>nvs upgrade 16.13.0
Upgrading node/16.13.0/x64 to 16.20.2...
Target version not found: node/16.13.0/x64

C:\Users\Qwerty\repos\BlenderBox\enrollwise-fe>nvs
PATH -= %LOCALAPPDATA%\nvs\node\18.19.0\x64
PATH += %LOCALAPPDATA%\nvs\node\16.13.0\x64

C:\Users\Qwerty\repos\BlenderBox\enrollwise-fe>node -v
v16.13.0

C:\Users\Qwerty\repos\BlenderBox\enrollwise-fe>nvs upgrade 16.13.0
Upgrading node/16.13.0/x64 to 16.20.2...
Target version not found: node/16.13.0/x64

C:\Users\Qwerty\repos\BlenderBox\enrollwise-fe>nvs upgrade 16.13
Upgrading node/16.13.0/x64 to 16.20.2...
Target version not found: node/16.13.0/x64

C:\Users\Qwerty\repos\BlenderBox\enrollwise-fe>nvs upgrade 16.13
Upgrading node/16.13.0/x64 to 16.20.2...
Target version not found: node/16.13.0/x64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant