All Questions
Tagged with yarnpkg package.json
165
questions
-1
votes
0
answers
18
views
Npm vs Yarn on Expo [closed]
On Expo, I heard that PlugnPlay is not supported by Yarn. So there is no reason to use Yarn Berry and hench I don't see any benefits of using Yarn V1 over using npm. Also, I have faced multiple ...
0
votes
0
answers
8
views
Publishing new versions of my package without needing to update package.json with each new version. Caret doesn't work. ^0.0.9 doesn't install 0.0.10
"dependencies": {
"@plugin/my-plugin": "^0.0.9",
}
Above is the version as listed in my package.json. There is also a version 0.0.10. When I do a yarn install, it ...
0
votes
0
answers
44
views
React Build Fails with "Reached Heap Limit" Error in Dockerized Environment*
I'm encountering a "FATAL ERROR: Reached heap limit Allocation failed" error during the build process of my ReactJS project within a Dockerized environment.
Environment:
ReactJS application
...
0
votes
0
answers
62
views
Creating a yarn dependency resolution for an alias
In package.json I have
"dependencies": {
"@reduxjs/toolkit": "^1.9.7",
"react-redux": "5.0.7",
"react-redux8": "npm:react-...
0
votes
0
answers
27
views
Next dev with yarn doesn't work on freshly created app
I created a new app with nextJS.
When I try to launch dev server with yarn dev with Webstorm, this appears:
$ yarn dev
yarn run v1.22.18
$ next dev
Done in 21.44s
This issue is specific to this ...
0
votes
0
answers
26
views
Updating React js dependencies giving issues after upgrading them
I am upgrading the REACT packages to the latest packages but after some error in the some package upgrade I am trying to restore the packages to the old version.
Packages to upgrade :-
"react-...
0
votes
0
answers
28
views
Trying to get a branch of a github repo into my code. Even though I'm using what I'm pretty sure is correct in package.json, it runs master instead
I'm trying to get a certain branch that I'm working on on a repo into my code to use as a library, but even though its linked correctly, its still using master. This is the current line that should be ...
0
votes
0
answers
529
views
unable to install sharp package using yarn
when I run yarn add sharp I get the below call stack.
I tried manually installing semver with the below command with no luck either.
rm -rf node_modules
rm yarn.lock
yarn add semver
yarn cache clean
...
1
vote
0
answers
50
views
Quickly determine when npm overrides are no longer necessary
To assist in keeping sub-dependencies up-to-date as an open vulnerability works its way through the SDLC of repositories (or doesn't in the case of unsupported packages), we have the opportunity to ...
1
vote
0
answers
81
views
Yarn 3 how to fix incompatible transitive dependencies?
Say I have a dependency graph like this:
root - d1 - d3 (v1.1)
`- d2 - d3 (v1.2)
and for some reason d3 v1.1 and v1.2 are incompatible (i.e., d1 has to use d3 v1.1, d2 has to use d3 v1.2).
Is ...
0
votes
0
answers
523
views
Why does my yarn.lock change even if I don't change my package.json?
After some investigation, I still can't understand why this is happening:
I have a package.json file and a yarn.lock commited in my repo. If I checkout my main branch and run:
yarn install
I would ...
-1
votes
1
answer
113
views
Is it possible to run a complex multiplatform yarn build script?
I have the following script inside a node project's package.json.
{
"scripts": {
"build": "SOME_VAR=$(ts-node ./scripts/build/hash-check.ts) && if [ \"$...
2
votes
1
answer
125
views
bower fails with Repository not found
In the project there is package.json and bower.json with this content:
{
"name": "project-name",
"dependencies": {
"paho-mqtt": "*"
}
}
...
2
votes
0
answers
930
views
Why are yarn and npm using the Incorrect Node version for package installation and running my react app despite NVM having only the correct version?
Some context, I am building a react application based on a UI kit I purchased which works fine sometimes and other times demonstrates this weird behavior. As explained above, upon running npm install ...
2
votes
0
answers
272
views
Run Multiple postman collections using newman and yarn
I have a scenario where I am running multiple postman collections using newman & yarn in github actions. I need to POST a message on MS teams after the execution.The problem is if One of the test ...