当前位置:网站首页>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设置就完成了
边栏推荐
- Fink异步IO的实战(关联维表)
- Compile, link, notes - 3
- golang modules initialization project
- 转换OTU表和序列文件为PICRUST2需要的格式
- JUC common thread pool source learning 02 ( ThreadPoolExecutor thread pool )
- The evolution of content products has three axes: traffic, technology, and product form
- CS内网横向移动 模拟渗透实操 超详细
- Lock wait timeout exceeded solution
- [机缘参悟-53]:《素书》-3-修身养志[求人之志章第三]
- Alluxio为Presto赋能跨云的自助服务能力
猜你喜欢
随机推荐
(Crypto必备干货)详细分析目前NFT的几大交易市场
DDS Arbitrary Waveform Output Based on FPGA
如何写一份高可读性的软件工程设计文档
ISELED---氛围灯方案的新选择
postgresql的普通字符串和转义字符串
自动化办公|办公软件和亿图脑图MindMaster快捷键
调试 - 笔记
Normal and escaped strings for postgresql
Could not acquire management access for administration
Mysql数据库查询好慢,除了索引,还能因为什么?
华为再发「天才少年」召集令!曾放弃360万年薪的他也来首秀
This editor actually claims to be as fast as lightning!
有关收集箱的改进建议
Kubernetes应用管理深度剖析
元宇宙的前景及四大赛道
Flink实时仓库-DWS层(关键词搜索分析-自定义函数,窗口操作,FlinkSql设置水位线,保存数据到Clickhouse)模板代码
如何做好技术选型
golang modules initialization project
Office Automation | Office Software and Edraw MindMaster Shortcuts
GeoServer + openlayers









