taro初使用

npm install taro-ui报 Maximum call stack size exceeded报错日志内容如下

0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Users\11691\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'taro-ui' ]
2 info using npm@6.10.3
3 info using node@v10.17.0
4 verbose npm-session f4c23365911db624
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 304 https://registry.npm.taobao.org/taro-ui 316ms (from cache)
8 silly pacote tag manifest for taro-ui@latest fetched in 327ms
9 timing stage:loadCurrentTree Completed in 4643ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 53ms
13 silly install loadShrinkwrap
14 verbose stack RangeError: Maximum call stack size exceeded
14 verbose stack at RegExp.test (<anonymous>)
14 verbose stack at schemas.forEach.schema (C:\Users\11691\AppData\Roaming\npm\node_modules\npm\node_modules\aproba\index.js:39:16)
14 verbose stack at Array.forEach (<anonymous>)
14 verbose stack at validate (C:\Users\11691\AppData\Roaming\npm\node_modules\npm\node_modules\aproba\index.js:34:11)
14 verbose stack at flatNameFromTree (C:\Users\11691\AppData\Roaming\npm\node_modules\npm\lib\install\flatten-tree.js:37:3)
14 verbose stack at flatNameFromTree (C:\Users\11691\AppData\Roaming\npm\node_modules\npm\lib\install\flatten-tree.js:39:14)
14 verbose stack at flatNameFromTree (C:\Users\11691\AppData\Roaming\npm\node_modules\npm\lib\install\flatten-tree.js:39:14)
14 verbose stack at flatNameFromTree (C:\Users\11691\AppData\Roaming\npm\node_modules\npm\lib\install\flatten-tree.js:39:14)
14 verbose stack at flatNameFromTree (C:\Users\11691\AppData\Roaming\npm\node_modules\npm\lib\install\flatten-tree.js:39:14)
14 verbose stack at flatNameFromTree (C:\Users\11691\AppData\Roaming\npm\node_modules\npm\lib\install\flatten-tree.js:39:14)
14 verbose stack at flatNameFromTree (C:\Users\11691\AppData\Roaming\npm\node_modules\npm\lib\install\flatten-tree.js:39:14)
14 verbose stack at flatNameFromTree (C:\Users\11691\AppData\Roaming\npm\node_modules\npm\lib\install\flatten-tree.js:39:14)
14 verbose stack at flatNameFromTree (C:\Users\11691\AppData\Roaming\npm\node_modules\npm\lib\install\flatten-tree.js:39:14)
14 verbose stack at flatNameFromTree (C:\Users\11691\AppData\Roaming\npm\node_modules\npm\lib\install\flatten-tree.js:39:14)
14 verbose stack at flatNameFromTree (C:\Users\11691\AppData\Roaming\npm\node_modules\npm\lib\install\flatten-tree.js:39:14)
14 verbose stack at flatNameFromTree (C:\Users\11691\AppData\Roaming\npm\node_modules\npm\lib\install\flatten-tree.js:39:14)
15 verbose cwd D:\app-minsui-react\myApp
16 verbose Windows_NT 10.0.18362
17 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\11691\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "taro-ui"
18 verbose node v10.17.0
19 verbose npm v6.10.3
20 error Maximum call stack size exceeded
21 verbose exit [ 1, true ]

 

无奈只能使用OR 要先用npm安装yarn

npm install -g yarn

使用 yarn 安装 CLI

yarn global add @tarojs/cli

taro init myApp

cd myApp

 npm install taro-ui

终于成功了,不过有如下警告,先留着

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN @tarojs/components@2.0.7 requires a peer of nervjs@^1.5.0 but none is installed. You must install peer dependencies yourself.
npm WARN @tarojs/taro@2.0.7 requires a peer of nervjs@^1.5.0 but none is installed. You must install peer dependencies yourself.
npm WARN @tarojs/taro@2.0.7 requires a peer of nervjs@^1.5.0 but none is installed. You must install peer dependencies yourself.
npm WARN @tarojs/taro@2.0.7 requires a peer of nervjs@^1.5.0 but none is installed. You must install peer dependencies yourself.
npm WARN @tarojs/taro@2.0.7 requires a peer of nervjs@^1.5.0 but none is installed. You must install peer dependencies yourself.
npm WARN @tarojs/taro@2.0.7 requires a peer of nervjs@^1.5.0 but none is installed. You must install peer dependencies yourself.
npm WARN @tarojs/taro@2.0.7 requires a peer of nervjs@^1.5.0 but none is installed. You must install peer dependencies yourself.
npm WARN @tarojs/taro@2.0.7 requires a peer of nervjs@^1.5.0 but none is installed. You must install peer dependencies yourself.
npm WARN @tarojs/taro@2.0.7 requires a peer of nervjs@^1.5.0 but none is installed. You must install peer dependencies yourself.
npm WARN @tarojs/taro@2.0.7 requires a peer of nervjs@^1.5.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-image-crop-picker@0.23.1 requires a peer of react-native@>=0.40.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-image-zoom-viewer@2.2.27 requires a peer of react@* but none is installed. You must install peer dependencies yourself.
npm WARN react-native-image-zoom-viewer@2.2.27 requires a peer of react-native@* but none is installed. You must install peer dependencies yourself.
npm WARN react-native-root-toast@3.2.0 requires a peer of react-native@>=0.47.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-image-pan-zoom@2.1.11 requires a peer of react@* but none is installed. You must install peer dependencies yourself.
npm WARN react-native-image-pan-zoom@2.1.11 requires a peer of react-native@* but none is installed. You must install peer dependencies yourself.
npm WARN @unimodules/react-native-adapter@3.0.0 requires a peer of react-native@* but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值