Altynay
Altynay

Reputation: 31

UNMET PEER DEPENDENCY react

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.

Upvotes: 3

Views: 6898

Answers (1)

Mayank Shukla
Mayank Shukla

Reputation: 104379

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",

Upvotes: 2

Related Questions