当前位置:网站首页>brew安装nvm报nvm command not found解决方案
brew安装nvm报nvm command not found解决方案
2022-06-30 04:40:00 【hudawei996】
试了很多方法都不行,最后在stackoverflow上找到了解决方案,完美解决了这个问题,这是因为在brew安装nvm时没有创建他的工作目录。
你应该创建nvm的工作目录如果它不存在的话:
mkdir ~/.nvm
然后在~/.bash_profile中加入并保存。(如果此文件不存在你应该创建一个)
export NVM_DIR="$HOME/.nvm"
终端中执行: . "/usr/local/opt/nvm/nvm.sh" 就将nvm.sh复制到了可执行目录下了
然后在终端执行
source .bash_profile
最后可以使用以下命令来检验是否设置路径成功
nvm --version
边栏推荐
- [UAV] kinematic analysis from single propeller to four rotor UAV
- IIS request SSL certificate
- Myrpc version 0
- What is an optocoupler circuit and what should be paid attention to in actual use?
- Salary management system based on servlet+jsp+mysql [source code + database]
- Foreign SSL certificate
- Qos(Quality of Service)
- How to apply for SSL certificate from the manufacturer
- Connect to the database and run node JS running database shows that the database is missing
- Learn about threads
猜你喜欢
Sectigo certificate
Redis实现短信登入功能(一)传统的Session登入
Myrpc version 6
FortiGate firewall configuration log uploading regularly
输入输出及中断技术——微机第六章学习笔记
Software digital signature certificate
Introduction to system programming
Myrpc version 5
Pourquoi l'ordinateur n'a - t - il pas de réseau après l'ouverture du Hotspot win10?
Foreign SSL certificate
随机推荐
IO stream, byte stream read / write copy
Wildcard SSL certificate issuing time
One interview question a day the difference between B tree and b+ tree
Redis实现短信登入功能(一)传统的Session登入
[fpga] implementation of IIC read / write EEPROM
[control] multi agent system summary. 4. control agreement.
Named pipes for interprocess communication
Software digital signature certificate
Array of small C
Enlist soldiers and generals, draw small programs, multi-threaded display time
Read / write lock example
How to use div boxes to simulate line triangles
Matlab reads fig file and restores signal
Es2019 key summary
【Paper】2017_ Research on coordinated control method of underwater vehicle formation marine survey
What is SQL injection and how to avoid it?
[learn FPGA programming from scratch -52]: high level chapter - FPGA development based on IP core - basic framework for IP core use (taking PLL as an example)
Implementation steps of dynamic proxy
Connect to the database and run node JS running database shows that the database is missing
Process architecture and process management