YohLee / Learning

学习资料
2 stars 0 forks source link

nodejs npm #20

Open YohLee opened 4 years ago

YohLee commented 4 years ago

1.下载软件,进行安装,配置环境变量(网上搜索资料); npm config set prefix "D:\Program Files\nodejs\node_global" npm config set cache "D:\Program Files\nodejs\node_cache" 2.配置淘宝镜像 npm config set registry https://registry.npm.taobao.org 3.切记以管理员身份运行cmd窗口,然后进入到有package.json文件目录执行以下语句 npm install 4.启动项目命令如下 npm run start