You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How often does it reproduce? Is there a required condition?
every time
What is the expected behavior? Why is that the expected behavior?
can use npm
What do you see instead?
choco upgrade nodejs
Chocolatey v2.2.2
Upgrading the following packages:
nodejs
By upgrading, you accept licenses for the packages.
nodejs is not installed. Installing...
Progress: Downloading nodejs.install 22.0.0... 100%
nodejs.install v22.0.0 [Approved]
nodejs.install package files upgrade completed. Performing other installation steps.
The package nodejs.install wants to run 'chocolateyInstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): a
Installing 64 bit version
Installing nodejs.install...
nodejs.install has been installed.
nodejs.install may be able to be automatically uninstalled.
The upgrade of nodejs.install was successful.
Software installed as 'msi', install location is likely default.
Progress: Downloading nodejs 22.0.0... 100%
nodejs v22.0.0 [Approved]
nodejs package files upgrade completed. Performing other installation steps.
The upgrade of nodejs was successful.
Software installed to 'C:\ProgramData\chocolatey\lib\nodejs'
Chocolatey upgraded 2/2 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
PS D:\WORK\IdeaProjects> npm -v
node:internal/modules/cjs/loader:1205
throw err;
^
Error: Cannot find module 'mypath\node_modules\npm\bin\npm-cli.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1202:15)
at Module._load (node:internal/modules/cjs/loader:1027:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:187:14)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v22.0.0
Additional information
No response
The text was updated successfully, but these errors were encountered:
Version
v22.0.0
Platform
Microsoft Windows NT 10.0.22621.0 x64
Subsystem
No response
What steps will reproduce the bug?
choco install npm
then
npm -v
How often does it reproduce? Is there a required condition?
every time
What is the expected behavior? Why is that the expected behavior?
can use npm
What do you see instead?
choco upgrade nodejs
Chocolatey v2.2.2
Upgrading the following packages:
nodejs
By upgrading, you accept licenses for the packages.
nodejs is not installed. Installing...
Progress: Downloading nodejs.install 22.0.0... 100%
nodejs.install v22.0.0 [Approved]
nodejs.install package files upgrade completed. Performing other installation steps.
The package nodejs.install wants to run 'chocolateyInstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): a
Installing 64 bit version
Installing nodejs.install...
nodejs.install has been installed.
nodejs.install may be able to be automatically uninstalled.
The upgrade of nodejs.install was successful.
Software installed as 'msi', install location is likely default.
Progress: Downloading nodejs 22.0.0... 100%
nodejs v22.0.0 [Approved]
nodejs package files upgrade completed. Performing other installation steps.
The upgrade of nodejs was successful.
Software installed to 'C:\ProgramData\chocolatey\lib\nodejs'
Chocolatey upgraded 2/2 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
PS D:\WORK\IdeaProjects> npm -v
node:internal/modules/cjs/loader:1205
throw err;
^
Error: Cannot find module 'mypath\node_modules\npm\bin\npm-cli.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1202:15)
at Module._load (node:internal/modules/cjs/loader:1027:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:187:14)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v22.0.0
Additional information
No response
The text was updated successfully, but these errors were encountered: