yarn 安装 提示 info No lockfile found.问题处理

7,085 阅读1分钟

如下图报错,安装什么都会延迟错误;

处理方法

yarn config list
info yarn config
{
  'version-tag-prefix': 'v',
  'version-git-tag': true,
  'version-commit-hooks': true,
  'version-git-sign': false,
  'version-git-message': 'v%s',
  'init-version': '1.0.0',
  'init-license': 'MIT',
  'save-prefix': '^',
  'bin-links': true,
  'ignore-scripts': false,
  'ignore-optional': false,
  registry: 'https://registry.npm.taobao.org',
  'strict-ssl': true,
  'user-agent': 'yarn/1.19.1 npm/? node/v12.16.1 darwin x64',
  disturl: 'https://npm.taobao.org/dist',
  'https-proxy': 'https://proxy.dvfu.ru:3128',
  'ignore-engines': true,
  lastUpdateCheck: 1582548430633
}
info npm config
{
  proxy: null,
  python: '/usr/bin/python'
}
✨  Done in 0.02s.
yarn config delete https-proxy
yarn config v1.19.1
success Deleted "https-proxy".
✨  Done in 0.02s.

问题处理完成;