gh-pages fails on `run deploy` - reactjs

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

Related

npm start in my react app is disturbing , I can't run my site in live server

Could not find a required file. Name: index.js Searched in: C:\web devlopment\react-chat-application\chat-application\src npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! chat-application#0.1.0 start: react-scripts start npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the chat-application#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: npm ERR! C:\Users\Black\AppData\Roaming\npm-cache_logs\2021-09-29T15_56_51_774Z-debug.log
Black#DESKTOP-N04CDRI MINGW64 /c/web devlopment/react-chat-application/chat-application (master) $

npm start issue working on react and next .js

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

sh: 1: tailwind: not found when run npm start

Hi I configured tailwind css with react but keep getting error when I run npm start sh: 1: tailwind: not found
demo#0.1.0 start /home/tarek/Documents/Tong/tripcanvas-assesment
npm run tailwind:css && react-scripts start
demo#0.1.0 tailwind:css /home/tarek/Documents/Tong/tripcanvas-assesment
tailwind build src/css/tailwind.src.css -c tailwind.js -o src/css/tailwind.css
sh: 1: tailwind: not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! demo#0.1.0 tailwind:css: `tailwind build src/css/tailwind.src.css -c tailwind.js -o src/css/tailwind.css`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the demo#0.1.0 tailwind:css 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:
npm ERR! /home/tarek/.npm/_logs/2019-07-26T06_27_45_711Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! demo#0.1.0 start: `npm run tailwind:css && react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the demo#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:
npm ERR! /home/tarek/.npm/_logs/2019-07-26T06_27_45_757Z-debug.log
Can you show us your package.json?
Have you installed scripts at all? npm or yarn

Error with node_modules while running npm start

I have this error when I type "npm start" in my react application
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! questionnaire#0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the questionnaire#0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
I tried to remove the folder node_modules and reinstall it with npm install, but then the problem reappers.
What can I do to fix it?

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

Resources