当前位置:网站首页>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设置就完成了
边栏推荐
猜你喜欢
随机推荐
ISELED---氛围灯方案的新选择
Example of video switching playback (video switching example) code
极验深知v2分析
GeoServer + openlayers
HUAWEI CLOUD Releases Open Source Software Governance Service - Software Component Analysis
How to split microservices?
Memory-mapped, bit-band operations
微服务该如何拆分?
5G-based Warehousing Informatization Solution 2022
[Cloud native] Grayscale release, blue-green release, rolling release, grayscale release explanation
Flink本地UI运行
Excel使用Visual Basic Editor对宏进行修改
The use and principle of distributed current limiting reduction RRateLimiter
Nature Microbiology综述:聚焦藻际--浮游植物和细菌互作的生态界面
[深入研究4G/5G/6G专题-46]: 5G Link Adaption链路自适应-2-常见缩略语
[机缘参悟-53]:《素书》-3-修身养志[求人之志章第三]
B+树索引页大小是如何确定的?
让人上瘾的新一代开发神器,彻底告别Controller、Service、Dao等方法
【重磅来袭】教你如何在RGBD三维重建中获取高质量模型纹理
元宇宙的前景及四大赛道









