纱线安装以离线模式挂起。依赖关系在通过“ yarn-offline-mirror”配置的本地文件系统中。服务器无法访问互联网。
用于将纱线设置为脱机的命令:
yarn config set yarn-offline-mirror /Users/xxx/npm-packages-offline-cache
yarn config set yarn-offline-mirror-pruning true
mv ~/.yarnrc ./
yarn install hangs at "Building fresh packages..." forever.