当前位置:网站首页>Solution: exit status 1 and exit status 145 appear when the console uses NVM to control the node version
Solution: exit status 1 and exit status 145 appear when the console uses NVM to control the node version
2022-07-24 06:38:00 【Slugs are not alone】
solve : The console uses nvm control node Appears at version exit status 1 And exit status 145
When building the project , There is a problem as shown in the figure :
reason :
status 1 Because of the lack of authority
status 145 install nvm perhaps node The file itself or the path is wrong
solve :
status 1: Run command prompt as Administrator
status 145:
① Check the installation nvm Path and setting placement nodejs Path or file of , Whether there are spaces or Chinese
For example, the default installation path C:\Program Files A space appears in , If there is , Change the path or folder name before using nvm use
② install nvm Whether there was nodejs Other versions
If there is , And the previous version was selected to be merged during the installation , You can delete nvm All in nodejs edition ( Mainly installation nvm Previous version ), Reinstall the required nodejs, Run again nvm use
Delete nvm All in nodejs edition
Find in the control panel node.js To uninstall , On this computer - attribute - Advanced system settings Put about nvm npm User variables and system variables of are deleted
User variables :
User variables path:
System variables :
System variables path:
reinstall
Download address :nvm download

Be careful :nvm The installation directory of cannot have spaces !! For example, this is not possible C:\Program Files, Generally, the directory without spaces will be selected by default .
It's best to choose directly in C disc or D The root directory of the disk , The root directory is selected to avoid insufficient permissions .
install nodejs You should also pay attention to the contents of , Are selected by default program files Of , Pay attention to change to other directories without spaces .
After installation , Run command prompt as Administrator , Join in nvm install After version number , perform nvm use Version number .
边栏推荐
- 微信TBS在线安装内核失败的解决方法
- Server hardware and RAID configuration practice
- Playing RTSP video stream on webpage
- Leetcode sword finger offer JZ9 dual stack implementation queue
- Life warning Maxim
- 使用自定义zabbix包(4.0.5版本)安装agent和proxy
- [219] what is the difference between app testing and web testing?
- go的环境搭建和起步
- DNS域名解析服务
- CentOS操作系统安全加固
猜你喜欢

Li Kou 986. Intersection of interval lists

Custom MVC 2.0

Jenkins自动化无人值守运行(上/下)

Mysql database - SQL summary (remember to pay attention to me! Come on in China!)

Common commands and package management of go language

MySQL from basic to entry to high availability

Responsive page
![[226] instructions for Wireshark parameters](/img/47/0d3fd221695920e02b1f690a2a21c1.png)
[226] instructions for Wireshark parameters

LVM与磁盘配额

Iterators and generators
随机推荐
Flink production environment configuration recommendations
Custom MVC 1.0
磁盘管理和文件系统
Batch operation of generating MySQL statements from Excel
[226] instructions for Wireshark parameters
object-oriented
Install agent and proxy using custom ZABBIX package (version 4.0.5)
一个测试经理/测试主管/测试总监的工作总结
Explain the event cycle mechanism and differences between browser and node in detail
DHCP原理与配置
迭代器与生成器
DNS域名解析服务
Leetcode sword finger offer JZ9 dual stack implementation queue
Homework in the second week
文件系统与日志分析
Use of awk
Leetcode sword finger offer jz25 merges two sorted linked lists
Interview questions for Test Manager / test team leader / Test Supervisor
Common commands and package management of go language
General paging 01