You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

React项目安装进度停滞,多次尝试仍无法完成

解决React项目创建停滞问题

多次使用npx create-react-app project或npm init react-app project创建React项目时,安装进程卡在reify:fsevents: sill reify mark deleted阶段,输出如下:

Need to install the following packages:
  create-react-app@5.0.1
Ok to proceed? (y) Y
npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.

Creating a new React app in F:\Nimra's\MY LOCKUP\IT WORK\React\reactjs.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template...

[#########.........] | reify:fsevents: sill reify mark deleted [

试试这些解决方法:

  • 清理npm缓存,执行命令:

    npm cache clean --force
    

    缓存损坏是常见的安装停滞原因,清理后重新尝试创建项目。

  • 切换到国内npm镜像源,提升包下载速度:
    临时切换源并创建项目:

    npx create-react-app project --registry=https://registry.npmmirror.com
    

    或者永久切换源:

    npm config set registry https://registry.npmmirror.com
    

    之后再执行创建命令。

  • 全局安装create-react-app后再创建项目:

    npm install -g create-react-app
    create-react-app project
    

    避免每次临时安装create-react-app时出现网络问题。

  • 检查网络稳定性:
    切换到更稳定的网络(比如手机热点),或者关闭代理软件后重试,网络波动会导致包下载中断卡住。

  • 删除残留项目文件:
    如果之前创建失败留下了不完整的项目文件夹,先彻底删除该文件夹,再重新执行创建命令。

内容的提问来源于stack exchange,提问作者Jerry

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.17 21:13:09