運行react項目時報錯node
caniuse-lite is outdated. please run next commandreact
而後你運行了他給的npm update……仍是不行,git
在網上找了這個方法,可行:github
Solution:web
C:\Users\USERNAME\AppData\Local\Temp\WebCompilerX.X.X
(X is the version of WebCompiler)node_modules
folder : caniuse-lite
and browserslist
C:\Users\USERNAME\AppData\Local\Temp\WebCompilerX.X.X
) and run: npm i caniuse-lite browserslist
就是去你的node_modules
下刪除caniuse-lite
和browserslist兩個文件夾,記住這個文件夾,
npm
再執行npm命令從新安裝,若是沒安裝到上面這個文件夾下,那麼就複製一份過去,app
原文在這裏,ide