node.js命令

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/weixin_40578880/article/details/85109780

一、Node.js下载地址:
https://nodejs.org/en/download/
node -v 查看版本
二、NPM基本使用指令:
npm help config 帮助文档
npm install -g 全局安装依赖
npm clear cache 清除缓存
npm update -g 更新
npm install -g cnpm --registry=https://registry.npm.taobao.org
npm install rimraf -g 删除node_modules
rimraf node_modules
npm uninstall -g 删除插件
npm run XXX 执行配置在package.json中的脚本

猜你喜欢

转载自blog.csdn.net/weixin_40578880/article/details/85109780