Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4463157
  • 博文数量: 356
  • 博客积分: 10458
  • 博客等级: 上将
  • 技术积分: 4734
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-24 14:59
文章分类

全部博文(356)

文章存档

2020年(17)

2019年(9)

2018年(26)

2017年(5)

2016年(11)

2015年(20)

2014年(2)

2013年(17)

2012年(15)

2011年(4)

2010年(7)

2009年(14)

2008年(209)

分类: JavaScript

2020-03-24 14:21:33

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

编译命令npm  run dev:weapp 

错误如下:             
> Miai@1.0.0 dev:weapp /opt/Miai
> npm run build:weapp -- --watch
> Miai@1.0.0 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

作者:帅得不敢出门
阅读(2827) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~