taro启动npm run dev:h5

全局安装

npm install @tarojs/cli -g

第二步: 项目得初始化

taro init myApp

第三步:执行

npm run dev:h5

之后报错,重新安装还是同样问题.

code ELIFECYCLE
npm ERR! errno 3221225725
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\leon-Yang.000\AppData\Roaming\npm-cache\_logs\2019-02-26T05_13_00_619Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 3221225725
npm ERR! myapp@1.0.0 dev:h5: `npm run build:h5 -- --watch`
npm ERR! Exit status 3221225725
npm ERR!
npm ERR! Failed at the myapp@1.0.0 dev:h5 script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\leon-Yang.000\AppData\Roaming\npm-cache\_logs\2019-02-26T05_13_00_658Z-debug.log

有提示缺少npm包@tarojs/webpack-runner,开始安装...
单独安装了npm @tarojs/webpack-runner还是报错.
有同学遇到过么?谢谢!

阅读 6.9k
2 个回答

用yarn或者cnpm重新安装下试试,可以先把package.json干掉

test
用yarn或者cnpm重新安装下试试,可以先把package.json干掉

推荐问题
宣传栏