引用:https://blog.csdn.net/junshangshui/article/details/84585911

1、安装 yarn

npm install -g yarn
yarn --version

2、添加

yarn add electron-edge

 下面是安装时出错

yarn add v1.22.10
error package.json: Name contains illegal characters
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.

yarn install v1.22.10 
error package.json: Name contains illegal characters

报错的原因是 package.json中 name的值为汉字或空格导致的,汉字改为英文小写就可以了。
View Code

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
  • 2022-02-06
  • 2022-12-23
  • 2022-12-23
  • 2021-10-26
猜你喜欢
  • 2022-12-23
  • 2021-09-08
  • 2021-11-06
  • 2021-05-24
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案