【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

原文地址:https://www.cnblogs.com/chy-op/p/10332930.html