Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does yarn install command completes with errors on my project?

yarn version 3.2.4 node version v18.12.0

After running yarn install I get the following error:

➤ YN0000: ┌ Fetch step
➤ YN0013: │ yargs@npm:17.6.2 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ yarn-install@npm:1.0.0 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ yauzl@npm:2.10.0 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ yup@npm:0.32.11 can't be found in the cache and will be fetched from the remote registry
➤ YN0013: │ zip-stream@npm:4.1.0 can't be found in the cache and will be fetched from the remote registry
➤ YN0000: └ Completed in 0s 488ms
➤ YN0000: ┌ Link step
➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0007: │ chromedriver@npm:107.0.3 must be built because it never has been before or the last one failed
➤ YN0007: │ es5-ext@npm:0.10.62 must be built because it never has been before or the last one failed
➤ YN0000: └ Completed in 0s 738ms
like image 713
Diana Silina-Duljaninova Avatar asked Sep 04 '25 01:09

Diana Silina-Duljaninova


2 Answers

For developing Grafana within container I was building Dockerfile comes with Grafana code. In Dockerfile when It hit the "yarn install" line it was giving

yn0013: yarn install @babel/generator@npm:7.20.5 can't be found in the cache and will be fetched from the remote registry
....

lines as error.

RUN yarn install

I put this line above yarn install it seems it is worked well:

RUN yarn set version stable
RUN yarn cache clean --all
RUN YARN_CHECKSUM_BEHAVIOR=update yarn install

To be honestly I don't know which line is effected in a good way but I think setting the yarn version to the stable one did.

like image 105
uzay95 Avatar answered Sep 07 '25 07:09

uzay95


these error codes are totally fine and none of them are actually errors. They are more like logs with INFO levels. if it is an error, you might have seen the message with the prefix with the error. You can read more about these error codes here.

like image 44
Raju Avatar answered Sep 07 '25 05:09

Raju