Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UNMET PEER DEPENDENCY react

Tags:

npm

reactjs

I have errors when want to install npm install node-saas

├── UNMET PEER DEPENDENCY [email protected]

└── UNMET PEER DEPENDENCY [email protected]

npm ERR! peer dep missing: react@^0.14.1, required by [email protected]

npm ERR! peer dep missing: react-dom@^0.14.1, required by [email protected]

npm ERR! code 1

Please help, Thank you very much.

like image 690
Altynay Avatar asked Mar 28 '26 23:03

Altynay


1 Answers

I think you forgot to install react and react-dom, first run this command it will install react and react-dom properly with all dependencies, after that run other commands.

npm install react react-dom --save

By using --save it will make a entry in package.json file, after using above command check your package.json file, these entries will be there:

"react": "^XX.X.X",
"react-dom": "^XX.X.X",
like image 121
Mayank Shukla Avatar answered Mar 31 '26 05:03

Mayank Shukla



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!