【问题标题】:npx create-react-app my-app stuck after installing packagesnpx create-react-app my-app 在安装包后卡住
【发布时间】:2021-09-07 17:14:39
【问题描述】:
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

yarn add v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.13: The platform "win32" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@2.3.2: The platform "win32" is incompatible with this module.
info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.20.0" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 7 new dependencies.
info Direct dependencies
├─ cra-template@1.1.2
├─ react-dom@17.0.2
├─ react-scripts@4.0.3
└─ react@17.0.2
info All dependencies
├─ cra-template@1.1.2
├─ immer@8.0.1
├─ react-dev-utils@11.0.4
├─ react-dom@17.0.2
├─ react-scripts@4.0.3
├─ react@17.0.2
└─ scheduler@0.20.2
Done in 368.65s.

create-react-app 在此之后卡住了。即使在我手动终止作业并执行命令“npm start”后仍然无法正常工作。 这个问题有什么解决办法吗?

【问题讨论】:

  • 我尝试了网上提供的大多数解决方案。最后,我为 32 位安装了 node js,它对我有用。感谢您的解决方案。

标签: node.js npm create-react-app npx


【解决方案1】:

一种可能的选择是尝试使用npm 代替纱线。

npx create-react-app my-app --use-npm

【讨论】:

    猜你喜欢
    • 2019-09-22
    • 1970-01-01
    • 2020-08-11
    • 1970-01-01
    • 2022-06-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多