create-react-app卸载与升级

用create-react-app 创建项目发现报错
You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.1). We no longer support global installation of Create React App. Please remove any global installs with one of the following commands:
- npm uninstall -g create-react-app
- yarn global remove create-react-app The latest instructions for creating a new app can be found here:
https://create-react-app.dev/docs/getting-started/
按照
npm uninstall -g create-react-app
提示卸载旧版本 ,查看版本号发现 并没有卸载成功

此时 只能通过暴力删除法卸载了
➜ react-demos git:(master) ✗ which create-react-app
/usr/local/bin/create-react-app
➜ react-demos git:(master) ✗ rm -rf /usr/local/bin/create-react-app
删除之后 通过查看版本号的方式 是否成功删除
➜ demo14_context git:(master) ✗ create-react-app -V
zsh: command not found: create-react-app
在安装最新版本create-react-app即可
npm install -g create-react-app

create-react-app卸载与升级的更多相关文章
- 深入 Create React App 核心概念
		
本文差点难产而死.因为总结的过程中,多次怀疑本文是对官方文档的直接翻译和简单诺列:同时官方文档很全面,全范围的介绍无疑加深了写作的心智负担.但在最终的梳理中,发现走出了一条与众不同的路,于是坚持分享出 ...
 - 如何扩展 Create React App 的 Webpack 配置
		
如何扩展 Create React App 的 Webpack 配置 原文地址https://zhaozhiming.github.io/blog/2018/01/08/create-react-a ...
 - 在 .NET Core 5 中集成 Create React app
		
翻译自 Camilo Reyes 2021年2月22日的文章 <Integrate Create React app with .NET Core 5> [1] Camilo Reyes ...
 - tap news:week5 0.0 create react app
		
参考https://blog.csdn.net/qtfying/article/details/78665664 先创建文件夹 安装create react app 这个脚手架(facebook官方提 ...
 - 使用create react app教程
		
This project was bootstrapped with Create React App. Below you will find some information on how to ...
 - Create React App
		
Facebook开源了React前端框架(MIT Licence),也同时提供了React脚手架 - create-react-app. create-react-app遵循约定优于配置(Coc)的原 ...
 - Create  React App 安装less 报错
		
执行npm run eject 暴露模块 安装 npm i less less-loader -D 1.打开 react app 的 webpack.config.js const sassRege ...
 - [React] Use the Fragment Short Syntax in Create React App 2.0
		
create-react-app version 2.0 added a lot of new features. One of the new features is upgrading to Ba ...
 - [React] {svg, css module, sass} support in Create React App 2.0
		
create-react-app version 2.0 added a lot of new features. One of the new features is added the svgr ...
 - create react app 项目部署在Spring(Tomcat)项目中
		
网上看了许多,大多数都是nginx做成静态项目,但是这样局限性太多,与Web项目相比许多服务端想做的验证都很麻烦,于是开始了艰难的探索之路,终于在不经意间试出来了,一把辛酸... 正常的打包就不说了. ...
 
随机推荐
- xpath、css元素定位
			
xpath 1.利用元素唯一属性 //*[@id='xxx'] 2.属性与逻辑结合 解决元素之间多个相同属性重名问题 //*[@id='xxx' and @class='xxx'] 3..//*[te ...
 - 遍历operation
			
std::ostringstream out; double f8Value; NXOpen::CAM::CAMSetup *camSetup = displayPart->CAMSetup() ...
 - IBM免费服务器试用
			
IBM公司的免费资源,仅需一个邮箱就可以注册申请,注册可以有60天试用期. 1.注册 点击 注册进入IBM教育资源官网进行注册,注册时仅需要一个有效邮箱,QQ,Gmail,outlook均可. 注册邮 ...
 - Pytorch实战学习(八):基础RNN
			
<PyTorch深度学习实践>完结合集_哔哩哔哩_bilibili Basic RNN ①用于处理序列数据:时间序列.文本.语音..... ②循环过程中权重共享机制 一.RNN原理 ① X ...
 - Linux 第五节 (shell脚本while循环,case,计划任务,用户及权限)
			
#!/bin/bash #this is a test script PRICE=$(expr $RANDOM % 1000) //将随机得出的数字取余 TIMES=0 while true do ...
 - SpringMVC的学习day01
			
什么是SpringMVC 基于狂神说SpringMVC课程的学习 前面已经学习了spring.javaSE.javaweb.mybatis等知识,今天开始学习springMVC,是ssm框架的最后一个 ...
 - Linux内核机制—smp_hotplug_thread
			
基于Linux-5.10 一.简介 1. 只是一个创建per-cpu线程执行用户提供的回调的机制. 2. 内核中已存在的注册 static struct smp_hotplug_thread idle ...
 - Qt 按键添加图标
			
1.开发环境:Qt5.12.2,QtCreate4.8.2 2.直接上代码 /* 按键上背景 */ QPixmap pixmap(":/Resourses/images/easyicon_n ...
 - django 事务踩坑
			
with transaction.atomic(): save_id = transaction.savepoint() #xx.字段A ormg更新操作 #提交事务 transaction.save ...
 - 国际版Office365客户端配置
			
Email Provider IMAP Settings POP Settings SMTP Settings Microsoft 365 Outlook Hotmail Live.com Serve ...