【问题标题】:How to create a create-react-app after deleting an old create-react-app删除旧的 create-react-app 后如何创建 create-react-app
【发布时间】:2021-11-29 13:30:15
【问题描述】:
(base) Dun-Yan:Web development.HTML ongdunyan$ sudo npm uninstall -g create-react-app
Password:

up to date, audited 1 package in 429ms

found 0 vulnerabilities
(base) Dun-Yan:Web development.HTML ongdunyan$ sudo npm install -global create-react-app@17.0.0
npm ERR! code ETARGET
npm ERR! notarget No matching version found for create-react-app@17.0.0.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/ongdunyan/.npm/_logs/2021-11-29T13_27_38_046Z-debug.log
(base) Dun-Yan:Web development.HTML ongdunyan$ 

我已经通过我的 Mac 终端删除了 vs 代码中的 create-react-app 文件。为什么仍然有错误,为什么我的文件 create-react-app 没有创建

【问题讨论】:

    标签: node.js reactjs npm


    【解决方案1】:

    React 和 create-react-app 是两个不同的东西

    虽然 react 在 17 版上,但 create-react-app(用于引导 react-apps 的脚本)在 4.0.3 版上

    请运行npm I -g create-react-app

    【讨论】:

    • 输入i或I后还是有错误
    • 你现在遇到什么错误?
    猜你喜欢
    • 1970-01-01
    • 2019-09-22
    • 2022-08-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-09-16
    相关资源
    最近更新 更多