Replies: 2 comments
-
When debugging, it appears that package.json {
"name": "yarn-link-cache",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"packageManager": "[email protected]",
"dependencies": {
"cpu-features": "^0.0.9"
}
} Initial ➤ YN0000: ┌ Resolution step
➤ YN0032: │ cpu-features@npm:0.0.9: Implicit dependencies on node-gyp are discouraged
➤ YN0032: │ nan@npm:2.18.0: Implicit dependencies on node-gyp are discouraged
➤ YN0000: └ Completed in 3s 352ms
➤ YN0000: ┌ Fetch step
➤ YN0013: │ wide-align@npm:1.1.5 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ wrap-ansi@npm:7.0.0 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ wrap-ansi@npm:8.1.0 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ wrappy@npm:1.0.2 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ yallist@npm:4.0.0 can't be found in the cache and will be fetched from the remote registry
➤ YN0000: └ Completed in 0s 519ms
➤ YN0000: ┌ Link step
➤ YN0007: │ cpu-features@npm:0.0.9 must be built because it never has been before or the last one failed
➤ YN0000: └ Completed in 1s 930ms
➤ YN0000: Done with warnings in 5s 821ms Subsequent ➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed
➤ YN0000: Done in 0s 24ms After ➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed
➤ YN0000: ┌ Link step
➤ YN0007: │ cpu-features@npm:0.0.9 must be built because it never has been before or the last one failed
➤ YN0000: └ Completed in 1s 887ms
➤ YN0000: Done in 1s 950ms However, it doesn't look like the are assets cached in that file, it's way too small. |
Beta Was this translation helpful? Give feedback.
-
I've been dealing with the same issue on aws amplify for Just want to add that, I don't think yarn caches the actual result of the build. The package itself has the build script and determines where the build output goes. In my case it's |
Beta Was this translation helpful? Give feedback.
-
I am setting up a BitBucket Pipeline with the latest Yarn 3.x and a NX monorepo setup.
I am installing with global cache:
and in the Pipeline, I am storing the cache as follows:
When the Pipeline runs, the cache is resolved and the "Fetch step" takes few seconds. The "Link step" however, takes 20 seconds:
is it possible to cache this step?
Beta Was this translation helpful? Give feedback.
All reactions