Skip to main content

All Questions

Tagged with
250 votes
6 answers
118k views

"You are running create-react-app 4.0.3 which is behind the latest release (5.0.0)" [duplicate]

I got an error while creating a React application. How do I fix it?
Athif Saheer's user avatar
  • 4,607
131 votes
6 answers
167k views

How to ignore incompatible engine "node" error on installing npm dependencies with yarn?

Given this package.json: { "name": "yarn-install-fail", "version": "1.0.0", "description": "", "main": "index.js", "scripts": {}, "author": "", "license": "ISC", "dependencies": { ...
k0pernikus's user avatar
  • 65.4k
29 votes
1 answer
50k views

NPM preinstall script

I am trying to run some policing script before any packages are installed. For Example: { "name": "pre-hook-check", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { ...
user98239820's user avatar
  • 1,481
84 votes
4 answers
59k views

Why wouldn't I use npm to install yarn?

In the blog post announcing yarn (an alternative npm client) they say, "The easiest way to get started is to run npm install -g yarn". But if you go to the "install yarn" page in their docs, "npm ...
Chris Arnesen's user avatar
56 votes
3 answers
24k views

What does "Linking Dependencies" during npm / yarn install really do?

For large web apps npm install resp. yarn install does take a lot of time, mostly in a step called Linking Dependencies. What is happening here? Is it fetching the dependencies of the dependencies? Or ...
medihack's user avatar
  • 16.6k
32 votes
3 answers
30k views

Error: jest-haste-map: Haste module naming collision:

I have created a custom npm module (will use xxx instead of its name) and link it manually using npm install. I tried very hard and searched : [Workarounds] Packager unable to resolve module from /...
Firdous nath's user avatar
  • 1,587
12 votes
4 answers
12k views

lerna add : No packages found where <package> can be added

have added lerna to my project, i have added a package to my server by running this command successfully: lerna add @types/express --dev But when I want to add another one: lerna add graphql class-...
Amir Meyari's user avatar
10 votes
2 answers
3k views

Prevent Yarn install from running in project (i.e. force NPM install)

We recently switched back to using NPM from Yarn, but old habits die hard and I'm worried some devs will accidentally use yarn install. How can I prevent yarn install from being run in the project? ...
Brett DeWoody's user avatar
3 votes
5 answers
25k views

Yarn is installed but does not work. Command is recognized but no yarn commands do anything. Windows Powershell

node version 11.13.0 npm version 6.9.0 I have installed yarn multiple ways, first with the npm install -g yarn, then I tried the .msi installer, and I also tried installing with chocolatey from an ...
Hamrobe's user avatar
  • 41