HBuilder X配置环境
---------------------------------------------------Web端----------------------------------------------------------------------
npm cache clean --force //清除缓存 解决4048
npm config set registry https://registry.npm.taobao.org //淘宝映像
npm config set electron_mirror https://npm.taobao.org/mirrors/electron/
npm info underscore (如果上面配置正确这个命令会有字符串response)
npm install
npm run dev
或者
npm install --legacy-peer-deps //强装
npm run dev
---------------------------------------------------手机端---------------------------------------------------------------------
npm cache clean --force //清除缓存 解决4048
npm config set registry https://registry.npm.taobao.org //淘宝映像
npm config set electron_mirror https://npm.taobao.org/mirrors/electron/
npm info underscore (如果上面配置正确这个命令会有字符串response)
npm install
npm i jsencrypt
手机端不需要执行直接运行浏览器打开
---------------------------------------------------解决npm对应的问题-----------------------------------------------------------
npm install npm@6.14.10 -g
npm install node-sass@6.0.1
npm install sass-loader@10.2.0