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

the npm did not include when install the version 22 through choco #52800

Closed
MaTao008 opened this issue May 2, 2024 · 2 comments
Closed

the npm did not include when install the version 22 through choco #52800

MaTao008 opened this issue May 2, 2024 · 2 comments
Labels
npm Issues and PRs related to the npm client dependency or the npm registry.

Comments

@MaTao008
Copy link

MaTao008 commented May 2, 2024

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

@VoltrexKeyva
Copy link
Member

VoltrexKeyva commented May 2, 2024

This is a known issue (and not really specific to Chocolatey), see #52682

@VoltrexKeyva VoltrexKeyva added the npm Issues and PRs related to the npm client dependency or the npm registry. label May 2, 2024
@targos targos closed this as not planned Won't fix, can't repro, duplicate, stale May 2, 2024
@targos
Copy link
Member

targos commented May 2, 2024

Closing as duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
npm Issues and PRs related to the npm client dependency or the npm registry.
Projects
None yet
Development

No branches or pull requests

3 participants