node.js 环境配置

node_global下创建node_modules

系统变量

新建NODE_Path -> node_modules的路径

用户变量

编辑Path

编辑...\npm为 node_modules的路径

系统变量

Path 新建 %NODE_PATH%

CMD测试
npm install express -g

报错

npm error code ETIMEDOUT源的连接超时,没用了要换源
npm cache clean --force

报错

npm warn using --force Recommended protections disabled

清缓存npm cache verify

换源npm config set registry https://registry.npmmirror.com

换源检测npm config get registry

全局安装express模块测
npm install express -g

相关推荐
陈振wx:zchen200817 小时前
前端-Node.js
node.js
Q_Q19632884752 天前
python+uniapp基于微信小程序的助眠小程序
spring boot·python·小程序·django·flask·uni-app·node.js
孟陬2 天前
事件驱动 vs 轮询:为什么 Node.js 官方推荐 `fs.watch()` 而非 `fs.watchFile`
node.js
林希_Rachel_傻希希2 天前
Express 入门全指南:从 0 搭建你的第一个 Node Web 服务器
前端·后端·node.js
Q_Q5110082852 天前
python+uniapp基于微信小程序团购系统
spring boot·python·微信小程序·django·uni-app·node.js·php
云枫晖2 天前
深入浅出npm:现代JavaScript项目基石
前端·javascript·node.js
Q_Q19632884753 天前
python+vue的在线租房 房屋租赁系统
开发语言·vue.js·spring boot·python·django·flask·node.js
不会写DN3 天前
用户头像文件存储功能是如何实现的?
java·linux·后端·golang·node.js·github
前端双越老师3 天前
译: 构建高效 AI Agent 智能体
前端·node.js·agent
哆啦A梦15883 天前
搜索页面布局
前端·vue.js·node.js