npm start issue working on react and next .js - reactjs

I just cloned code from a GitHub repository.
I tried to run it with the following command
'next' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! nextjs#0.1.0 start: `next start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the nextjs#0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\DELL\AppData\Roaming\npm-cache\_logs\2021-10-12T12_27_53_876Z-debug.log
PS F:\REACT\projectnamme> node -v
v12.16.1
PS F:\REACT\projectnamme> npm -v
6.13.4
F:\REACT\projectnamme> create-react-app --version
3.4.1

first of all, you need to download your node_modules
you can use npm install or yarn install
then do npm start or yarn start in your terminal

Related

npm ERR! Failed at the react-complete-guide#0.1.0 start script

Hello I had installed create-react-app
Now when I try to npm start in my app I got the following error. Any idea about how to solve this issue?
Thanks.
$ npm start
react-complete-guide#0.1.0 start C:\Users\clebe\OneDrive\Área de Trabalho\projects\react-complete-guide
react-scripts start
'react-scripts' is not recognized as an internal or external command,
operable program or batch file. npm ERR! code ELIFECYCLE npm ERR!
errno 1 npm ERR! react-complete-guide#0.1.0 start: react-scripts
start npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the
react-complete-guide#0.1.0 start script. npm ERR! This is probably not
a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: pm ERR!
C:\Users\clebe\AppData\Roaming\npm-cache_logs\2019-04-03T08_48_44_624Z-debug.log
$ node --version
v10.15.3
$ webpack --version
4.29.6

gh-pages fails on `run deploy`

GitHub Pages deploy fails and I don't have any idea why.
Already deleted node_modules and reinstalled them.
This is the output from the terminal:
> lvl-counter#0.1.0 deploy /Users/9to5dev/github/lvl-counter
> gh-pages -d build
sh: gh-pages: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! lvl-counter#0.1.0 deploy: `gh-pages -d build`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the lvl-counter#0.1.0 deploy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
enter code here
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/9to5dev/.npm/_logs/2019-01-13T12_42_36_512Z-debug.log
Thank you for your help!
Did you try installing gh-pages?
npm install gh-pages

Error While running the project in vs code

I'm new to react native. I'm trying to run the project i'm running the cmd 'npm install' But it is showing error.
D:\vox-android>npm install
npm WARN deprecated object-keys#0.2.0: Please update to the latest object-keys
npm ERR! code ENOGIT
npm ERR! Error while executing:
npm ERR! undefined ls-remote -h -t ssh://git#github.com/tradle/react-native-http.git
npm ERR!
npm ERR! undefined
npm ERR! No git binary found in $PATH
npm ERR!
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\kisuser\AppData\Roaming\npm-cache\_logs\2018-12-19T09_22_40_673Z-debug.log

Deploying react app to github pages

I'm trying to deploy a react.js app to github pages (I'm following this guide https://medium.freecodecamp.com/surge-vs-github-pages-deploying-a-create-react-app-project-c0ecbf317089) but I keep getting the following error when I run npm run deploy
ENOENT: no such file or directory, stat '/Users/name/Documents/Web Dev/100 Web Projects/wikipediaviewer/build'
npm ERR! Darwin 16.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "deploy"
npm ERR! node v6.10.3
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! wikipediaviewer#1.0.0 deploy: `npm run build&&gh-pages -d build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the wikipediaviewer#1.0.0 deploy script 'npm run build&&gh-pages -d build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the wikipediaviewer package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run build&&gh-pages -d build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs wikipediaviewer
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls wikipediaviewer
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/name/Documents/Web Dev/100 Web Projects/wikipediaviewer/npm-debug.log
Can anyone pls help me figure out what I am doing wrong? If i run npm run build it builds successfully. Also i didn't use create-react-app to build this app, could that be the issue & what would I have to do to fix it.
It seems like you didn't create a build folder after you ran npm run build, so that you should change gh-pages -d path-to-your-build

npm-install throws exception for angular-seed

I am trying to install and configure angular-seed in my webstorm IDE. After creating project and downloading angular-seed i tried to run npm install
command to install all the dependencies like the page says (https://github.com/angular/angular-seed). But i found the following error when trying to run the command. the error is given bellow:
bower angular-route#~1.4.0 ENOGIT git is not installed or not in the PATH
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v0.12.5
npm ERR! npm v2.11.2
npm ERR! code ELIFECYCLE
npm ERR! angular-seed#0.0.0 postinstall: `bower install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-seed#0.0.0 postinstall script 'bower install'.
npm ERR! This is most likely a problem with the angular-seed package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! bower install
npm ERR! You can get their info via:
npm ERR! npm owner ls angular-seed
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\User\WebstormProjects\untitled\npm-debug.log
I tried to install bower first by running the command npm install -g bower and then running another command bower install angular but it does not working either. It shows another error:
bower angular#~1.4.0 ENOGIT git is not installed or not in the PATH
Can anyone help me to find the solution of the problem. Please let me know where i have done wrong.
Do you have installed git?
If you run cmd.exe and write
git
what do you see? If is git installed correctly in global path, you see git help.
If git is installed only as Git Bash, you can run bower in Git Bash.
Alternatively you can (re)install git with this option, then will be git available in command promt (global path)

Resources