Questions tagged [yarn-lock.json]

90 questions
1
vote
0 answers

Yarn start doesn't work - Bin/sh: command not found

When using yarn start on my frontend, I keep getting the error: /bin/sh: react-scripts: command not found error Command failed with exit code 127. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. Here is my…
github292929
  • 185
  • 7
1
vote
1 answer

warning Lockfile has incorrect entry for "prismjs@1.24.0". Ignoring it

I have inherited an issue with prismjs whereby I have to remove/reinstall it every time I add/upgrade another package. I have a gocd pipeline validation that fails every time I try to use dependabot to address security vulnerabilities on my…
1
vote
0 answers

yarn create react-app not working and aborting installation

I tried installing a react-app using yarn and got this error message: yarn version: 1.22.17 npm version: 8.3.0 It is also showing an error of "No Lockfile found". $ yarn create react-app redux-shopping-app yarn create v1.22.17 [1/4] Resolving…
1
vote
2 answers

nested dependencies resolution for yarn not showing up in yarn.lockfile

I am using resolutions to resolve a vulnerability coming from a nested dependency (@dep/xyz). The nested dependency is using axios 0.21.1 whichhas a vulnerability. I am supposed to upgrade to any compatible version above it. When I added it to…
nisha
  • 11
  • 1
  • 3
1
vote
2 answers

Error upgrading dependencies in yarn.lock file with yarn up in Yarn 2.0

I'm trying to use Yarn 2.0 to upgrade to the latest version of the dependency in my yarn.lock to resolve a dependabot issue. The issue exists with the ini dependency and I tried running command yarn up ini which resulted in the following error: ❯…
AMP_035
  • 167
  • 1
  • 2
  • 13
1
vote
3 answers

How to copy back to host package-lock.json/yarn.lock after install dependencies inside docker container?

I'm using Docker containers to run my CRA application. I use 2 different DockerFile, one for running CRA in development and one to generate the build. During the step of installing dependencies: FROM node:15.5.0-alpine3.10 USER node RUN mkdir…
Alex Ferreli
  • 548
  • 1
  • 7
  • 14
1
vote
2 answers

Unable to install yarn packages via docker build

I'm trying to speed up spinning up docker by having all current packages in yarn.lock be installed on the image already. I think I'm doing yarn install incorrectly, that it is working somewhere else? relevant part of dockerfile: # Create a…
Jonathan
  • 479
  • 3
  • 8
  • 17
1
vote
1 answer

yarn command that adds integrity-sha to old yarn.lock file but do not upgrade any packages

Is there any combination of yarn commands i can use so that in a old yarn.lock file we can add just the integrity-sha's but it doesn't upgrade any underlying packages.
thecaveman
  • 142
  • 2
  • 10
1
vote
0 answers

Security vulnerability for eslint-utils which is added as one of the dependencies for eslint@5.12.0

I am getting Arbitrary Code Execution security vulnerability for one of the dependencies - eslint-utils of package eslint@5.12.0 in yarn.lock. Any leads to upgrade eslint-utils to remove the audit vulnerability would be highly appreciated. …
Chetan Gawai
  • 2,361
  • 1
  • 25
  • 36
1
vote
1 answer

update yarn .lock and push to remote to affect docker instance

In the project, I have cloned from my organization's GitLab, there is a module in the package.json as: "react-native-device-info": "https://github.com/KarlosQ/react-native-device-info#master", and respectively in the yarn.lock we have…
Amir-Mousavi
  • 4,273
  • 12
  • 70
  • 123
1
vote
0 answers

Yarn sub-dependency control

When reading yarn docs (the part: Selective dependency resolutions) I found usage case: Your dependency defines a broad version range and your sub-dependency just got a problematic update so you want to pin it to an earlier version. So there…
Murakami
  • 3,474
  • 7
  • 35
  • 89
0
votes
0 answers

getting Build warning while running yarn build

I create build of my react JS project by running "yarn build" and while creating build I get warning "File sizes after gzip: 717.01 kB build\static\js\main.85d9885a.js 58.24 kB build\static\css\main.37788f6b.css 1.78 kB …
0
votes
0 answers

Getting error EACCES while running npm run dev

ritankarroy@Snehas-MacBook-Pro booblu % npm run dev booblu@0.1.0 dev next dev ready started server on 0.0.0.0:3000, url: http://localhost:3000 [Error: EACCES: permission denied, mkdir '/Users/ritankarroy/next/booblu/.next'] { type:…
0
votes
0 answers

Is this not a circular dependency in NX Vite plugin?

Didn't want to file a github issue with @nx/vite because it seems to work, but I'm not sure how yarn doesn't complain when installing, so I'd like to know why. I noticed here that they're rescoping. It says that @nrwl scoped packages have exported…
0
votes
0 answers

Yarn resolves to newer version instead of exact version

If I understand the semver versioning correctly, this happens when upgrading a version. Assuming version 1.5.0 is available. Changing version to "^1.3.5" will resolve to "1.5.0" Changing version to "~1.3.5" will resolve to latest in "1.3.x"…
Randomz
  • 73
  • 1
  • 9