Closed roncanepa closed 3 years ago
There were multiple trails in trying to figure out this issue. In addition to the above, there was also this:
Step 5/14 : RUN npm install -g yarn
---> Running in a3b90f119c73
npm WARN lifecycle yarn@1.22.10~preinstall: cannot run in wd %s %s (wd=%s) yarn@1.22.10 :; (node ./preinstall.js > /dev/null 2>&1 || true) /usr/lib/node_modules/.staging/yarn-c6781dde
/usr/bin/yarn -> /usr/lib/node_modules/yarn/bin/yarn.js
/usr/bin/yarnpkg -> /usr/lib/node_modules/yarn/bin/yarn.js
/usr/lib
`-- yarn@1.22.10
which seems to be sometimes due to permissions. Most of the issues could be replicated in a 18.04 vm.
The ultimate fix was placing npm install
later in the docker build process ( 17c0d6e )