解决方式:
# 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
首页 > 技术文章 > 【Jenkins】执行yarn install报错:error An unexpected error occurred:"... ... :Unexpected end of JSON input"
chy-op 2019-01-29 10:36 原文
解决方式:
# 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