【问题标题】:Node "13.0.0-nightly20190802452b393c1f" error without nightly installed没有夜间安装的节点“13.0.0-nightly20190802452b393c1f”错误
【发布时间】:2019-12-23 19:22:30
【问题描述】:

尝试 create-react-app 时出现以下错误。

Creating a new React app in /home/sabin/development/react/complete-guide.

warning You are using Node "13.0.0-nightly20190802452b393c1f" which is not supported and may encounter bugs or unexpected behavior. Yarn supports the following semver range: "^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0"
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...

yarn add v1.17.3
warning You are using Node "13.0.0-nightly20190802452b393c1f" which is not supported and may encounter bugs or unexpected behavior. Yarn supports the following semver range: "^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0"
[1/4] Resolving packages...
[2/4] Fetching packages...
error @babel/core@7.5.5: The engine "node" is incompatible with this module. Expected version ">=6.9.0". Got "13.0.0-nightly20190802452b393c1f"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

Aborting installation.
  yarnpkg add --exact react react-dom react-scripts --cwd /home/sabin/development/react/complete-guide has failed.

Deleting generated file... package.json
Deleting generated file... yarn.lock
Deleting complete-guide/ from /home/sabin/development/react
Done.

操作系统:Ubuntu 18.04 节点:12.8.1

我从来没有安装过夜间版本。我已经从 nvm 中卸载了节点,并从 Ubuntu 存储库中卸载了包。然后我从节点站点安装了 12.8.1 二进制文件。即使尝试 npx -p node@12 create-react-app appname ,我仍然会收到错误消息。任何帮助,将不胜感激。

使用最新的 linux 二进制文件卸载和重新安装节点

【问题讨论】:

  • 我发现附加 --use-npm like npx create-react-app appname --use-npm 解决了我的问题。
  • 霍华德你是如何纠正这个问题的?我也有同样的问题...

标签: reactjs create-react-app npx


【解决方案1】:

这个问题的解决方法很简单,node已经从ubuntu软件库中安装了,删除就去那里,然后去安装的软件删除node,然后通过官网重新安装。

https://i.stack.imgur.com/POn0V.png

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-06-15
    • 1970-01-01
    • 1970-01-01
    • 2015-01-31
    • 2015-03-16
    • 1970-01-01
    相关资源
    最近更新 更多