yarn clear cache All In One
yarn clear cache All In One
Arguments:
/usr/local/bin/node /usr/local/Cellar/yarn/1.22.10/libexec/bin/yarn.js add --exact react react-dom react-scripts cra-template --cwd /Users/xgqfrms/Documents/gitlab-projects/dap-monitor-config/monitor-config
PATH:
/Users/xgqfrms/node_modules/.bin:/Users/xgqfrms/bin:/usr/local/bin:/Users/xgqfrms/.nvm/versions/node/v14.15.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/xgqfrms/bin:/Users/xgqfrms/.nvm/versions/node/v14.15.5/bin:/Users/xgqfrms/.cargo/bin
Yarn version:
1.22.10
Node version:
12.18.0
Platform:
darwin x64
Trace:
SyntaxError: /Users/xgqfrms/Library/Caches/Yarn/v6/npm-@npmcli-move-file-1.1.2-1a82c3e372f7cae9253eb66d72543d6b8685c674-integrity/node_modules/@npmcli/move-file/.yarn-metadata.json: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /usr/local/Cellar/yarn/1.22.10/libexec/lib/cli.js:1625:59
at Generator.next (<anonymous>)
at step (/usr/local/Cellar/yarn/1.22.10/libexec/lib/cli.js:310:30)
at /usr/local/Cellar/yarn/1.22.10/libexec/lib/cli.js:321:13
npm manifest:
{
"name": "monitor-config",
"version": "0.1.0",
"private": true
}
yarn manifest:
No manifest
Lockfile:
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
// ...other logs (too long, not paste here)
Q: after run one of bellow commands, I got the yarn-error.log
file
$ npx create-react-app monitor-config
$ npm init react-app monitor-config
$ yarn create react-app monitor-config
env
$ node -v
v12.18.0
$ npm -v
6.14.4
$ yarn -v
1.22.10
solution
$ npm uninstall -g create-react-app
# ✅
$ yarn global remove create-react-app
https://create-react-app.dev/docs/getting-started/#creating-an-app
$ yarn cache clean
$ yarn cache clean --mirror
$ yarn cache clean --all
https://yarnpkg.com/cli/cache/clean
https://classic.yarnpkg.com/en/docs/cli/cache/
refs
https://github.com/facebook/create-react-app/issues/11191
©xgqfrms 2012-2020
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/14987445.html
未经授权禁止转载,违者必究!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· .NET10 - 预览版1新功能体验(一)
2020-07-08 Node.js Learning Paths All In One
2020-07-08 Typescript & readonly property
2020-07-08 gitpod & free online ide
2020-07-08 CSS border gradient color All In One
2019-07-08 vue & methods call bug
2019-07-08 ES6 & import * & import default & import JSON All In One
2019-07-08 components & slot