尝试在我的react-rails项目中执行yarn时出现“无效值类型”错误

Got*_*tey 6 ruby-on-rails reactjs webpack react-rails yarnpkg

我正进入(状态:

error An unexpected error occurred: "Invalid value type 2:0 in /Users/myname/Desktop/work2/reservations_fully_paid/Foggle/yarn.lock".
info If you think this is a bug, please open a bug report with the information provided in "/Users/myname/Desktop/work2/reservations_fully_paid/Foggle/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Run Code Online (Sandbox Code Playgroud)

yarn当尝试在我的react-rails项目中执行时

小智 11

I:删除yarn.lock文件。

rm -f app/yarn.lock
Run Code Online (Sandbox Code Playgroud)

二. 运行以下命令再次重新生成文件。

cd app
yarn install 
Run Code Online (Sandbox Code Playgroud)