把代码拉下来,什么都没做,就跑不起来了,版本是: Taro CLI 3.0.5
-
报错信息如下,有同学知道是什么原因吗?
taro-one@1.0.0 build:h5 D:\test-wrok\taro-one > taro build --type h5 "--watch" D:\test-wrok\taro-one>"node" "D:\test-wrok\taro-one\node_modules\.bin\\..\_@tarojs_cli@3.0.5@@tarojs\cli\bin\taro" build --type h5 "--watch" �👽 Taro v3.0 (node:14152) UnhandledPromiseRejectionWarning: D:\test-wrok\taro-one\node_modules\_p-limit@3.0.2@p-limit\index.js:30 } catch {} ^ SyntaxError: Unexpected token { at createScript (vm.js:80:10) at Object.runInThisContext (vm.js:139:10) at Module._compile (module.js:617:28) at Module._compile (D:\test-wrok\taro-one\node_modules\_pirates@4.0.1@pirates\lib\index.js:99:24) at Module._extensions..js (module.js:664:10) at Object.newLoader [as .js] (D:\test-wrok\taro-one\node_modules\_pirates@4.0.1@pirates\lib\index.js:104:7) at Module.load (module.js:566:32) at tryModuleLoad (module.js:506:12) at Function.Module._load (module.js:498:3) at Module.require (module.js:597:17) at require (internal/module.js:11:18) at Object.<anonymous> (D:\test-wrok\taro-one\node_modules\_terser-webpack-plugin@3.0.7@terser-webpack-plugin\dist\index.js:26:38) at Module._compile (module.js:653:30) at Module._compile (D:\test-wrok\taro-one\node_modules\_pirates@4.0.1@pirates\lib\index.js:99:24) at Module._extensions..js (module.js:664:10) at Object.newLoader [as .js] (D:\test-wrok\taro-one\node_modules\_pirates@4.0.1@pirates\lib\index.js:104:7) (node:14152) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) (node:14152) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
-
同样出现了该问题,请问解决了吗,求教,谢谢
-
@青春期peng 你好 ,请问你下解决了么 , 我的是2.2.8版本 也是这个错误
-
@jd_EUupuiqtLOEp 研究了好久,没有解决
-
@青春期peng 估计是网络问题,在家里可以 在公司就操作
-
@jd_665e0be8418c3 是跟我一模一样的报错吗? 我是家里和公司的电脑都不行
-
@jd_665e0be8418c3 不知道啥问题 尴尬
-
2.2.9版本可以的
-
创建项目后,直接运行,报同样的错
-
测试了node8.x会报此问题,10.x以上都能正常编译