I'm creating a react project and I wrote this command in terminal :
npm -i -s react-dom react-router-dom node-sass
My version of react-dom in my package.json is 17.0.2
When I press enter I get this in return : Unknown command: 'react-dom'
I someone can help me I would be glad !
Thanks
CodePudding user response:
If you are trying to install the command is install
or just i
.
npm install -s react-dom react-router-dom node-sass
npm i -s react-dom react-router-dom node-sass
CodePudding user response:
You Can use create react app
npx create-react-app my-app
cd my-app
npm start