起因:
在Windows试试创建create-react-app
却发现会以下错误
npm ERR! code ENOLOCAL
npm ERR! Could not install from "Files\nodejs\node_cache\_npx\25960" as it does not contain a package.json file.
Install for [ 'create-react-app@latest' ] failed with code 1
看到这个文章https://www.joynop.com/p/133.html
最后顺利解决。