You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I realize that yarn 2.x has been released, I'll give it a try later
For now, I'm adopting the [email protected] to Rocket.Chat in order to gain the offline installation feature
I've set up the cache-folder and yarn-offline-mirror, which can really keep the local files correctly (as shown in screenshot)
However, the yarn still try to invoke the git ls-remote even when running in the offline mode when yarn.lock file exists (without node_modules)
Besides, I tired to adopt --prefer-offline to all of the yarn install and yarn add commands with .yarnrc like mentioned in #6398
However, I've already tried the install.prefer-offline true, install.prefer-offline "", "--install.prefer-offline" true, install.prefer-offline "--dummy", etc. that any combination I could think of, and NON of them work :(
Does this feature still work in [email protected] ?
I wonder if there's any mechanism to bypass the git ls-remote or to ignore it (just keep running instead of force stop)
How to set up default --prefer-offline with .yarnrc
Thank you very much :)
--
Environment:
In Docker image (FROM node:12.22.1-buster-slim), simulate offline environment by docker run --network none
I could provide the Dockerfile I wrote if anyone need one (not commit and push yet)
With/without using root user reach this error
With/without keeping the yarn.lock reach this error too
The text was updated successfully, but these errors were encountered:
For now, I'm adopting the
[email protected]
to Rocket.Chat in order to gain the offline installation featureI've set up the
cache-folder
andyarn-offline-mirror
, which can really keep the local files correctly (as shown in screenshot)However, the yarn still try to invoke the
git ls-remote
even when running in the offline mode whenyarn.lock
file exists (withoutnode_modules
)Besides, I tired to adopt
--prefer-offline
to all of theyarn install
andyarn add
commands with.yarnrc
like mentioned in #6398However, I've already tried the
install.prefer-offline true
,install.prefer-offline ""
,"--install.prefer-offline" true
,install.prefer-offline "--dummy"
, etc. that any combination I could think of, and NON of them work :(Does this feature still work in
[email protected]
?git ls-remote
or to ignore it (just keep running instead of force stop)--prefer-offline
with.yarnrc
Thank you very much :)
--
Environment:
FROM node:12.22.1-buster-slim
), simulate offline environment bydocker run --network none
yarn.lock
reach this error tooThe text was updated successfully, but these errors were encountered: