Skip to content

Node.Js

npm install nodemon -g
nodemon app.js

If you don’t want to set the environment variable, another option is to modify the scripts part of package.json from:

"start": "react-scripts start"

to

Linux (tested on Ubuntu 14.04/16.04) and MacOS (tested by @aswin-s on MacOS Sierra 10.12.4):

"start": "PORT=3006 react-scripts start"

or (may be) more general solution by @IsaacPak

"start": "export PORT=3006 react-scripts start"

Windows @JacobEnsor solution

"start": "set PORT=3006 && react-scripts start"
export PORT=3005
npm start

How to run React Node.js Yarn from git hub source 
check version
node -v: v6.11.1
npm -v: 5.3.0
yarn --version (if you use Yarn):

Firstly Delete package-lock.json file in your project folder.
And then install dependencies again by npm install. That should solve this issue.

npm install


Steps to Reproduce
(Write your steps here:)

npm install -g create-react-app
create-react-app my-app ... cd my-app/
npm start

https://github.com/nodesource/distributions/blob/master/README.md

https://nuxtjs.org/docs/2.x/get-started/installation

https://nodejs.org/en/docs/guides/nodejs-docker-webapp/

https://jonathanmh.com/deploying-a-nuxt-js-app-with-docker/

https://linuxize.com/post/how-to-install-node-js-on-ubuntu-20-04/

https://phoenixnap.com/kb/install-latest-node-js-and-nmp-on-ubuntu#:~:text=the%20most%20stable.-,Install%20a%20Specific%20Version,the%20number%20of%20the%20version.&text=This%20will%20list%20all%20installed%20Node.
Published inUncategorized

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *