当前位置:网站首页>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 .
边栏推荐
- 项目上复盘引导问题清单
- Luckyframeweb testing platform (a full latitude free open source testing platform that supports interface automation, Web UI automation, APP automation, and distributed testing)
- Quickly and simply set up FTP server, and achieve public network access through intranet [no need for public IP]
- sed命令
- MySQL from basic to entry to high availability
- JSP tag
- Custom MVC 1.0
- openssl版本升级
- LVM与磁盘配额
- 联合国农产品数据分析
猜你喜欢

Process and planned task management

DNS域名解析服务

NFS shared services and experiments

Leetcode refers to the duplicate number in the offer jz3 array

日志收集分析平台

Ia class summary (2)

FTP service and experiment

Restful API introduction

Polkadot | interprets how liberty plan, which subverts traditional social media, will be launched in Poka

API process and code structure
随机推荐
go的环境搭建和起步
XML parsing
Quick start of go language
List of problems in the re disk guidance of the project
mysql 忘记退出直接关闭窗口现在要删除整个文件夹如何删除
Batch operation of generating MySQL statements from Excel
Server hardware and RAID configuration practice
rsync(一):基本命令和用法
DNS domain name resolution service
JSP tag
Go environment construction and start
Login page + summary
迭代器与生成器
Use of MySQL
测试经理/测试组长/测试主管面试题
Quickly and simply set up FTP server, and achieve public network access through intranet [no need for public IP]
Leetcode refers to offer jz5 to replace the space string
Ia class summary (1)
RESTful API介绍
[226] instructions for Wireshark parameters