kodali@kodaliPC:~/SivaDocs/React/Examples/hello-react3$ node --version v14.7.0 kodali@kodaliPC:~/SivaDocs/React/Examples/hello-react3$ npm -v 6.14.7 kodali@kodaliPC:~/SivaDocs/React/Examples/hello-react3$ nvm use 10.14.2 Now using node v10.14.2 (npm v6.4.1) kodali@kodaliPC:~/SivaDocs/React/Examples/hello-react3$ npm -v 6.4.1 kodali@kodaliPC:~/SivaDocs/React/Examples/hello-react3$ node -v v10.14.2 NOTE: If you close terminal , and open new terminal then if you run npm -v and node -v you will get default versions . Remember it. Again in that new terminal if you want to downgrade you have to use the command nvm use VERSION_NUMBER https://www.tecmint.com/nvm-install-multiple-nodejs-versions-in-linux/ npx vs npm https://www.geeksforgeeks.org/what-are-the-differences-between-npm-and-npx // check version node -v || node --version // list installed versions of node (via nvm) nvm ls // install specific version of node nvm install 6.9.2 // set default version of node nvm alias default 6....
git clone [repository url] //Step 2: cd [local repository] //Step 3: //Check package.json file and ensure scripts are notated as below: "scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject" }, //Step 4: /* Delete the node_modules folder and any 'lock' files such as yarn.lock or package-lock.json if present.*/ //Step 5: npm install //Step 6: npm start In case of issues shown after npm install, run the below to automatically fix the issues: npm audit fix Alternatively, use the below to see the errors: npm audit
Comments
Post a Comment