reactjs - 输入 npm install -g create-react-app 后出现以下消息,如何解决?
问题描述
对于 react js 和 react native 都会出现此消息!请花时间解决我的大问题
C:\Windows\system32>npm install -g create-react-app
npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
changed 67 packages, and audited 68 packages in 17s
4 packages are looking for funding
run `npm fund` for details
3 high severity vulnerabilities
To address all issues, run:
npm audit fix
Run `npm audit` for details.
C:\Windows\system32>
进入npm审计后:
npm ERR! code ENOLOCK
npm ERR! audit This command requires an existing lockfile.
npm ERR! audit Try creating one first with: npm i --package-lock-only
npm ERR! audit Original error: loadVirtual requires existing shrinkwrap file
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Real Acc\AppData\Local\npm-cache\_logs\2021-08-25T14_34_14_987Z-debug.log