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


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


解决方式:


  # 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