Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yarn install --offline command does not work #8752

Open
Campaio opened this issue Dec 16, 2021 · 0 comments
Open

yarn install --offline command does not work #8752

Campaio opened this issue Dec 16, 2021 · 0 comments

Comments

@Campaio
Copy link

Campaio commented Dec 16, 2021

I was following instructions in here, so I could install packages on a machine with no internet access.
The steps I've made:

  1. On a machine with internet access
  • I've set up both yarn-offline-mirror and yarn-offline-mirror-pruning. yarn-offline-mirror was set to an absolute path.
  • I've deleted yarn.lock file
  • I've executed yarn install

The result is the offline mirror folder was populated with the packages I use in the project

  1. On a machine with no internet access
  • I've cloned the main repo with the project
  • I've cloned the repo with the packages (offline mirror)
  • I've set yarn-offline-mirror pointing to a folder from the previous step
  • I've executed yarn cache clean
  • I've executed yarn install --offline

The result is that yarn is unable to install with the following error:
[1/4] Resolving packages... [2/4] Fetching packages... error Can't make a request in offline mode ("https://registry.npm.taobao.org/@babel/plugin-syntax-dynamic-import/download/@babel/plugin-syntax-dynamic-import-7.8.3.tgz?cache=0&sync_timestamp=1578950368021&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fplugin-syntax-dynamic-import%2Fdownload%2F%40babel%2Fplugin-syntax-dynamic-import-7.8.3.tgz") info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

No matter what I do, I can't make it work on any machine I've tried.

Environment
NodeJS v16.13.0
Yarn v1.22.0
OS: Windows 10 Enterprise (Version 19043)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant