慕雪7126116
2018-12-22 19:07
C:\Users\11\AppData\Roaming\npm\node_modules\@tarojs\cli\src\util\index.js:227
exports.replaceAsync = async function (str, regex, asyncFn) {
SyntaxError: Unexpected token function
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (C:\Users\11\AppData\Roaming\npm\node_modules\@tarojs\cli\bin\taro:4:44)
cnpm run build:h5
npm加载依赖有的资源加载不到,需要cnpm才能获取到该资源。
Taro多端框架开发外卖首页
22905 学习 · 85 问题
相似问题