1:下载node.js安装
安装成功后
2:打开cmd
输入
npm -v
node --version
出现node.js版本信息就安装成功
3: 配置依赖
npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
npm config set phantomjs_cdnurl=https://npm.taobao.org/mirrors/phantomjs/
npm config set electron_mirror=https://npm.taobao.org/mirrors/electron/
npm config set registry=https://registry.npm.taobao.org
4:进入node项目的文件夹
比如我的项目在F:\eclipseSource\biguiyuan_web_dev
则进入 f: cd F:\eclipseSource\biguiyuan_web_dev
启动项目:
npm instal
项目打包
npm run build
npm run build