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

能否支持cnpm yarn pnpm npx nvm 等包管理器 #69

Closed
chenyueteng opened this issue Mar 12, 2024 · 6 comments
Closed

能否支持cnpm yarn pnpm npx nvm 等包管理器 #69

chenyueteng opened this issue Mar 12, 2024 · 6 comments
Labels
documentation Improvements or additions to documentation stale

Comments

@chenyueteng
Copy link

能否支持cnpm yarn pnpm npx nvm 等包管理器

问题: npm install pnpm -g 后 ,使用 pnpm 报 nvm-desktop: command not found: pnpm

@1111mp
Copy link
Owner

1111mp commented Mar 12, 2024

支持的,这个信息提示你查看一下这里看能否帮助到你:(#23)

你可以通过npm config get prefix查看全局安装包的路径,然后不是默认位置修改过就将这个目录路径添加到系统环境变量中

@1111mp 1111mp added the documentation Improvements or additions to documentation label Mar 13, 2024
@cn-liu
Copy link

cn-liu commented Mar 20, 2024

我将npm全局依赖包指向一个固定的文件夹并且设置npm的config prefix 和环境变量,但依旧是nvm-desktop: command not found: ‘依赖包’ ,

@1111mp
Copy link
Owner

1111mp commented Mar 20, 2024

@cn-liu 终端运行 npm config get prefix 输出什么,然后能够将该目录下的文件截图发出来看一下吗

然后请确认将该目录添加到系统环境变量里面,且让其的优先级比 %HOMEPATH%.nvmd\bin 高(即位置靠前)

@cn-liu
Copy link

cn-liu commented Apr 1, 2024

@1111mp 感谢,已解决!,是环境变量的问题,原因是npm环境变量低于nvm环境变量找不到命令

Copy link

github-actions bot commented May 1, 2024

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label May 1, 2024
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation stale
Projects
None yet
Development

No branches or pull requests

3 participants