如果我使用create-react-app
安装react项目,它将打印create-react-project command doesn't exist
。
如果我使用npx create-react-app
安装react项目,它将打印出来
npm ERR! code ENOLOCAL
npm ERR! Could not install from "BUY\AppData\Roaming\npm-cache\_npx\8088" as it does not contain a package.json file.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\BEST BUY\AppData\Roaming\npm-cache\_logs\2020-07-16T12_39_07_288Z-debug.log
Install for [ 'create-react-app@latest' ] failed with code 1'.
如果我以管理员身份将其安装在Windows文件夹中,则它将安装,但是当我在项目中导入任何模块时,它会打印“找不到模块:无法解析
react-table-6' in 'G:\git\reactApp\src
Error from chokidar (G:\node_modules): Error: EBUSY: resource busy or locked, lstat 'G:\pagefile.sys