NOOB here, trying to follow this React tutorial: https://github.com/reactjs/react-tutorial/
The README.md file says to: npm install node server.js
After cloning the repo, I ran npm install and a bunch of stuff (modules?) downloaded. But when I try to run npm server.js and I'm hit with this message:
Specify configs in the ini-formatted file:
C:\Users\User\.npmrc
or on the command line via: npm <command> --key value
Config info can be viewed via: npm help config
[email protected] C:\Program Files\nodejs\node_modules\npm
C:\Users\User\.npmrc contains this:
key=
Any ideas on how to get the npm server up and running? Do I need to set the key in this file to something?
the correct way to start the server would be
npm run server.js
Try out below command if trying to start NextJS react
npm run-script start
Use npx
instead of npm
:
npx create-react-app my-app
try like below command without npm
Ex: create-react-app app-name
.(without npm)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With