Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

npm install --no-audit --save @testing-library/jest-dom@^5.14.1 @testing-library/react@^13.0.0 @testing-library/user-event@^13.2.1 web-vitals@^2.1.0` failed

This worked out in my case. Beforew creating the app first run this:

npm config set legacy-peer-deps true

Then run:

npx create-react-app my-app

Explanation:
The --legacy-peer-deps flag was introduced with v7 as a way to bypass 
peerDependency auto-installation; it tells NPM to ignore peer dependencies 
and proceed with the installation anyway. This is how things used to be with
NPM v4 through v6.
Comment

PREVIOUS NEXT
Code Example
Shell :: heroku push alternative branch 
Shell :: nvme cli 
Shell :: No such file as readline.h 
Shell :: install radium 
Shell :: shellpish 
Shell :: git merge local branch 
Shell :: how to create release in github 
Shell :: powershell string contains 
Shell :: create github repo with bash 
Shell :: how to define a variable in bashrc 
Shell :: linux find partial name 
Shell :: input prompt in command line 
Shell :: syntax error: unexpected end of file bash 
Shell :: sublime path for filezilla in ubuntu 
Shell :: homebrew install in linux 
Shell :: git clone to specific folder 
Shell :: TypeError: Could not load reporter "mochawesome" 
Shell :: git pull asks for passphrase every time 
Shell :: how to commit to main branch in git 
Shell :: registry open run 
Shell :: randomstring npm 
Shell :: sbatch: error: Batch script contains DOS line breaks ( ) sbatch: error: instead of expected UNIX line breaks ( ). 
Shell :: extract every nth line using sed linux fedora 
Shell :: install react redux 
Shell :: remove all local changes git 
Shell :: chmod execute permissions for everyone 
Shell :: how to disable a user linux 
Shell :: access django admin 
Shell :: file name from path linux 
Shell :: git how to add remote 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =