umi插件开发遇到的问题 error An unexpected error occurred: “E:\\WorkSpace\\webstorm\\umi-plugin\\package.json:
yarn add v1.22.5
error An unexpected error occurred: “E:\WorkSpace\webstorm\umi-plugin\package.json: Unexpected token } in JSON at position 1453”.
info If you think this is a bug, please open a bug report with the information provided in “E:\WorkSpace\webstorm\umi-plugin\yarn-error.log”.
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
我在开发umi插件的时候安装完要安装依赖就出现错误,原因在package.json
中多一个逗号
,把这个逗号去掉问题就解决了
去掉之后yarn完成安装