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

npm install行不通 #9

Open
brian4159 opened this issue Jul 17, 2024 · 1 comment
Open

npm install行不通 #9

brian4159 opened this issue Jul 17, 2024 · 1 comment

Comments

@brian4159
Copy link

npm install并不能从指定node版本上下载,运行时可以是指定的node版本

@1111mp
Copy link
Owner

1111mp commented Jul 18, 2024

你是全局安装包还是通过package.json给项目安装依赖 正常情况下切换了node 使用的是对应node下的npm 你可以打开nvm-desktop的主界面查看各个node默认携带的npm的版本
image

如果是全局安装包没有隔离的话 请检查npm是否设置了全局安装包的目录 可以通过 npm config get prefix 查看 如果设置了那么所有不同版本node的npm安装全局包都会安装到该目录下 所以就不会隔离

更多详情请查看:1111mp/nvm-desktop#23

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

2 participants