【Jenkins】执行yarn install报错:error An unexpected error occurred:"... ... :Unexpected end of JSON input"

 

解决方式:

  # cd /usr/local/n/versions/node/11.6.0/lib/(node的安装目录下)

  # rm -rf node_modules

  # yarn cache clean

  # yarn

参考链接:https://github.com/yarnpkg/yarn/issues/2629

posted @ 2019-01-29 10:36  _chy  阅读(5691)  评论(0编辑  收藏  举报