React Native 从Botonic安装依赖项时出错

yhxst69z  于 2023-02-13  发布在  React
关注(0)|答案(1)|浏览(151)

我正在安装一个叫Botonic的框架,我安装得很完美,但是当我运行命令“botonic new my Bot blank”时,我得到了一个巨大的NPM错误!

~Jhenriqueax🚀: botonic new myBot blank
✔ Downloading files...
✖ Installing dependencies...
Your message must be < 32kb. This is currently surfaced as a warning to allow clients to update. Versions released after August 1, 2018 will throw an error instead. Please update your code before then. {
  event: 'Error Botonic CLI',
  anonymousId: 87047954,
  properties: {
    platform: 'darwin',
    arch: 'arm64',
    timezone: 'America/Fortaleza',
    timestamp: '2023-01-18T21:45:38.995Z',
    is_tty: true,
    framework_path: '/usr/local/lib/node_modules/@botonic/cli/lib',
    system_path: '/opt/homebrew/bin:/opt/homebrew/sbin:/Library/Frameworks/Python.framework/Versions/3.9/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/jhenriqueax/Development/flutter/bin:/Library/Apple/usr/bin',
    node_version: 'v16.14.2',
    botonic_cli_version: '0.20.2',
    botonic_dependencies: [ [Array] ],
    error_type: 'Installing dependencies: Error: Command failed: CXXFLAGS="--std=c++14" npm install\n' +
      'npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated\n' +
66bbxpm5

66bbxpm51#

将节点版本降级到14.16.1
1.如果你用的是nvm,试试nvm install 14.16.1
1.然后use nvm 14.16.1
确保您的npm版本应为6.14.12

相关问题