安装Gulp环境,全局安装
npm config set registry http://registry.cnpmjs.org/
npm install gulp –g
进入项目文件,安装本地gulp环境
npm install gulp --save-dev
安装依赖包
npm install
运行项目
npm run build //一定先build 否则会出现 cannot get错误或空页
npm run dev
npm config set registry http://registry.cnpmjs.org/
npm install gulp –g
npm install gulp --save-dev
npm install
npm run build //一定先build 否则会出现 cannot get错误或空页
npm run dev
本文标题:怎样启动Gulp项目
本文链接:https://www.haomeiwen.com/subject/cywzoktx.html
网友评论