npx create-react-app命令不成功,更改成淘宝镜像

    技术2022-07-16  83

    1、查看npm的镜像源 npm config get registry // 默认是:https://registry.npmjs.org/ 2、修改成淘宝的镜像源 npm config set registry https://registry.npm.taobao.org 3、create-react-app创建项目 npx create-react-app todolist // npx comes with npm 5.2+,可以直接使用 npx create-react-app // 也可以使用 npm init react-app todolist --需要 npm 6+

    image.png

     

    image.png

    4、启动 cd todolist npm run start

     

    2人点赞

     

    react

     

    作者:漫漫江雪 链接:https://www.jianshu.com/p/8e401c650aa4 来源:简书 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

    Processed: 0.009, SQL: 9