当前位置:网站首页>zsh: command not found: nvm
zsh: command not found: nvm
2022-07-26 08:54:00 【Arrogance.miner】
zsh: command not found:nvm terms of settlement
Before using mac pro When Yes, it has been installed nvm
The specific operation process is nvm To configure
It's perfectly possible under normal circumstances
But I used the company's computer today yes macBook Air
I found that after I finished configuring nvm --version It's all right
But when I newly opened iTerm Or use in the project nvm Always report zsh: command not found
even to the extent that npm I can't use the command of
I searched the Internet Many have no effect Of course, it was finally solved
As follows
- stay ~/.bash_profile add to
sudo vim ~/.bash_profile
add to
source ~/.bashrc
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
After saving and exiting
source ~/.bash_profile
If an error is reported, the file cannot be found Just touch ~/.bash_profile
Then re execute the above code
stay zsh China still reports zsh: command not found
error
find ~/.zshrc
If you can't find it Use
touch ~/.zshrc
Create a new file
find # User configuration
Add... On the next line
source ~/.bash_profile
Then save to exit
source ~/.zshrc
At this time in iTerm The end use of nvm That's all right.
stay vscode Open a new terminal to use nvm It's OK
If not
stay .zshrc Try adding these at the bottom :
PATH=/bin:/usr/bin:/usr/local/bin:${PATH}
export PATH
边栏推荐
- [suggestions collection] summary of MySQL 30000 word essence - locking mechanism and performance tuning (IV) [suggestions collection]
- P3743 kotori的设备
- idea快捷键 alt实现整列操作
- [recommended collection] MySQL 30000 word essence summary + 100 interview questions (I)
- Oracle 19C OCP 1z0-082 certification examination question bank (24-29)
- Oracle 19C OCP 1z0-082 certification examination question bank (30-35)
- day06 作业---技能题7
- Oracle 19C OCP 1z0-082 certification examination question bank (13-18)
- One click deployment of lamp and LNMP scripts is worth having
- 数据库操作 题目二
猜你喜欢
pl/sql之集合-2
Deploy prometheus+grafana monitoring platform
What are the contents of Oracle OCP and MySQL OCP certification exams?
数据库操作技能7
Hegong sky team vision training Day6 - traditional vision, image processing
Day06 homework - skill question 7
In the first year of L2, the upgrade of arbitrum nitro brought a more compatible and efficient development experience
KV database based on raft consensus protocol
Uni app simple mall production
解决C#跨线程调用窗体控件的问题
随机推荐
Espressif 玩转 编译环境
Day06 homework - skill question 7
Oracle 19C OCP 1z0-082 certification examination question bank (7-12)
正则表达式:判断是否符合USD格式
Set of pl/sql -2
day06 作业---技能题7
Cadence(十)走线技巧与注意事项
Day06 homework - skill question 6
Database operation topic 2
pl/sql之集合-2
合工大苍穹战队视觉组培训Day6——传统视觉,图像处理
Foundry tutorial: writing scalable smart contracts in various ways (Part 1)
Database operation skills 7
Pan micro e-cology8 foreground SQL injection POC
My meeting of OA project (query)
[suggestions collection] summary of MySQL 30000 word essence - locking mechanism and performance tuning (IV) [suggestions collection]
[database] gbase 8A MPP cluster v95 installation and uninstall
Study notes of automatic control principle --- stability analysis of control system
[freeswitch development practice] use SIP client Yate to connect freeswitch for VoIP calls
OA项目之我的会议(查询)