taro编译错误UnhandledPromiseRejectionWarning: RangeError: Maximum call stack size exceeded

taro自己写的程序编译正常,但是从网上下载的taro项目却发现一个都编译不过。

编译命令npm  run dev:weapp 

错误如下:             
> [email protected] dev:weapp /opt/Miai
> npm run build:weapp -- --watch

> [email protected] build:weapp /opt/Miai
> taro build --type weapp "--watch"

? Taro v1.3.21

开始编译项目 Miai
(node:28722) UnhandledPromiseRejectionWarning: RangeError: Maximum call stack size exceeded
   at normalizeStringPosix (path.js:101:30)
   at Object.normalize (path.js:1211:12)
   at findWorkspaceRoot (/usr/local/lib/node_modules/@tarojs/cli/node_modules/find-yarn-workspace-root/index.js:20:22)
   at recursiveFindNodeModules (/usr/local/lib/node_modules/@tarojs/cli/dist/util/index.js:455:27)
   at recursiveFindNodeModules (/usr/local/lib/node_modules/@tarojs/cli/dist/util/index.js:460:12)
   at recursiveFindNodeModules (/usr/local/lib/node_modules/@tarojs/cli/dist/util/index.js:460:12)
   at recursiveFindNodeModules (/usr/local/lib/node_modules/@tarojs/cli/dist/util/index.js:460:12)
   at recursiveFindNodeModules (/usr/local/lib/node_modules/@tarojs/cli/dist/util/index.js:460:12)
   at recursiveFindNodeModules (/usr/local/lib/node_modules/@tarojs/cli/dist/util/index.js:460:12)
   at recursiveFindNodeModules (/usr/local/lib/node_modules/@tarojs/cli/dist/util/index.js:460:12)
(node:28722) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a pro
mise which was not handled with .catch(). (rejection id: 1)
(node:28722) [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.

解决方法:

taro update project
 

发布了201 篇原创文章 · 获赞 20 · 访问量 41万+

猜你喜欢

转载自blog.csdn.net/zmlovelx/article/details/102751337
今日推荐