Category : yarnpkg

Failed to create an image on the staging server with the below error. Browserslist: caniuse-lite is outdated. Please run next command yarn upgrade caniuse-lite browserslist Here is my package.json { "scripts": { "start": "webpack-dev-server –host=0.0.0.0 –content-base=public", "jest": "jest –no-cache –runInBand", "lint": "eslint .", "test": "yarn lint && yarn flow && yarn jest", "fix": "eslint . ..

Read more

I’m trying to package my code into a docker container. As my code uses yarn workspaces I run yarn install inside the root directory. The install succeeds Step 4/12 : RUN yarn install —> Running in cb566d2a7db5 yarn install v1.22.5 [1/4] Resolving packages… [2/4] Fetching packages… [3/4] Linking dependencies… [4/4] Building fresh packages… success Saved ..

Read more

I’m having the following issue when trying run my container: psa-web | Error: EACCES: permission denied, open ‘/root/.config/yarn’ psa-web | at Object.openSync (node:fs:495:3) psa-web | at readFileSync (node:fs:396:35) psa-web | at /opt/yarn-v1.22.5/lib/cli.js:101332:58 psa-web | at Array.map (<anonymous>) psa-web | at parseRcPaths (/opt/yarn-v1.22.5/lib/cli.js:101330:78) psa-web | at Object.findRc (/opt/yarn-v1.22.5/lib/cli.js:101344:10) psa-web | at getRcConfigForCwd (/opt/yarn-v1.22.5/lib/cli.js:56916:74) psa-web | at ..

Read more

I’m trying to use docker in my hosted node.js application. The command "yarn build" generates a folder of static assets for my application. It works fine locally without Docker but when I deploy with Docker I get the following error: Error: ENOENT: no such file or directory, stat ‘/usr/src/app/build/index.html’ Here’s my current Dockerfile: FROM node:alpine ..

Read more

I’m trying to use docker in my hosted node.js application. The command "yarn build" generates a folder of static assets for my application. It works fine locally without Docker but when I deploy with Docker I get the following error: Error: ENOENT: no such file or directory, stat ‘/usr/src/app/build/index.html’ Here’s my current Dockerfile: FROM node:alpine ..

Read more