mac安装nvm在终端可以运行成功 但是vscode 运行不了nvm指令
来源:1-4 【前端效率神器】Yarn & Nvm(nvm-windows)
qq_慕后端6491586
2019-12-13 11:54:10
1回答
需要配置nvm环境变量哦,注意多读官方的文档,或者仔细的看视频:
adds the source lines from the snippet below to your profile (~/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc).
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
在~/.zshrc中添加如上的内容。
相似问题