当前位置:网站首页>nodejs环境变量设置
nodejs环境变量设置
2022-07-30 14:48:00 【yitahutu79】
在安装目录下新建两个文件夹,命名为node_cache,和node_global。
在nodejs打开命令行窗口,然后输入命令:
npm config set prefix "D:\software\nodejs\node-v16.16.0-win-x64\node_global"
npm config set cache "D:\software\nodejs\node-v16.16.0-win-x64\node_cache"
打开环境变量设置窗口,在用户(或者系统)变量这一栏中,点击“新建”按钮,添加一个变量名“NODE_PATH",值为:

在“系统变量”里,找到Path这个变量,选中并编辑它。给他添加一个值: D:\software\nodejs\node-v16.16.0-win-x64\,这个是你的nodejs的安装根目录,如下图所示:
.在“用户变量”这一栏,设置Path的变量。如果没有,就新建之,设置值为
到此nodejs设置就完成了
边栏推荐
猜你喜欢

Excel使用Visual Basic Editor对宏进行修改

华为「天才少年」计划招募的博士们,迎来首秀!

Sentinel

四大首搭加持,美学、安全、操控、效率优势明显,比亚迪海豹售价20.98万元起售!

华为再发「天才少年」召集令!曾放弃360万年薪的他也来首秀

机房布线的至高境界,美到窒息

DDS Arbitrary Waveform Output Based on FPGA

Local Transactions vs Distributed Transactions
![[Cloud native] Grayscale release, blue-green release, rolling release, grayscale release explanation](/img/90/f7d85ac655d9206fefbd28e0fc81ba.png)
[Cloud native] Grayscale release, blue-green release, rolling release, grayscale release explanation

Huawei issues another summoning order for "Genius Boys"!He, who had given up an annual salary of 3.6 million, also made his debut
随机推荐
Flink本地UI运行
Distributed pre-course: MySQL implements distributed locks
元宇宙邮局AI航天主题系列数字藏品 将于7月30日10:00点上线“元邮数藏”
【为宏正名】99%的人从第一天学习C语言就自废的武功
(Crypto essential dry goods) Detailed analysis of the current NFT trading markets
Local Transactions vs Distributed Transactions
golang图片处理库image简介
Use of InputStream and OutputStream
Lock wait timeout exceeded solution
MongoDB starts an error Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)
JHM:芳环羟化双加氧酶数据库DARHD建立及相关引物评价
Lock wait timeout exceeded解决方案
有关收集箱的改进建议
瑞吉外卖项目实战Day02
ISELED---氛围灯方案的新选择
How is the B+ tree index page size determined?
canal scrape data
我们公司用了 6 年的网关服务,动态路由、鉴权、限流等都有,稳的一批!
71-page comprehensive overall solution for global tourism 2021 ppt
【重磅来袭】教你如何在RGBD三维重建中获取高质量模型纹理