Deploying React app to Github Pages issue - javascript

I've deployed my react app to github pages, now I want to deploy an updated version, but when I run npm run deploy it returns me:
EACCES: permission denied, rmdir '/Users/progbash/Desktop/milijonasroziu/build/static/css'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! milijonasroziu#0.1.0 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the milijonasroziu#0.1.0 build 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! /Users/progbash/.npm/_logs/2020-02-19T22_35_43_611Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! milijonasroziu#0.1.0 predeploy: `npm run build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the milijonasroziu#0.1.0 predeploy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Related

Error trying to deploy canvacord to herkou

sh: 1: node-pre-gyp: Permission denied
The app compiles and works well locally, so i'm pretty sure it's something with the deployment settings.
Here is the full error:
sh: 1: node-pre-gyp: Permission denied
npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ERR! canvas#2.6.1 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the canvas#2.6.1 install 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! /tmp/npmcache.PnhI1/_logs/2020-08-01T15_10_47_770Z-debug.log
you can follow this wiki https://github.com/Automattic/node-canvas/wiki/Installation:-Heroku for node-canvas/canvacord installation on Heroku.

"babel-node: not found" with react-native

i getting this type of error while running the other project in my Linux system.
sh: 1: babel-node: not found
npm ERR! code ELIFECYCLE
npm ERE! syscall spawn
npm ERR! file sh
npm ERR! ENOENT errno
npm ERR! react-native-activity-feed-showcase#.1.0 init-data: babel-node scripts/initData.js
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the init-data script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

how do I create a new project with create-react-app

I new started use for mac os. While created a new project with create-react-app, I take a that error:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! recipe#0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the recipe#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! /Users/macbook/.npm/_logs/2019-08-21T16_25_25_607Z-debug.log
You need to run:
npm install
Before you can run:
npm start

An error occurred while following creat-react-app

I want to solve these errors quickly and study. But the search continues and the symptoms continue to appear even though others have tried to do so.
> hello-react#0.1.0 start /Users/kimseungwon/hello-react
> react-scripts start
> npm ERR! file sh
> npm ERR! path sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn sh
npm ERR! hello-react#0.1.0 start: `react-scripts start`
npm ERR! spawn sh ENOENT
npm ERR!
npm ERR! Failed at the hello-react#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! /Users/kimseungwon/.npm/_logs/2018-09-02T08_28_05_806Z-debug.log
node version: 8.11.4
npm version: 5.6.0
Why is this happening?
You don't need to run the project with react-scripts command, just you should using the npm command as below as you can see in package.json scripts object:
npm run start

NPM: Registry is missing

npm http GET https://registry.npmjs.org/n
npm ERR! Error: failed to fetch from registry: n
npm ERR! at /usr/share/npm/lib/utils/npm-registry-client/get.js:139:12
npm ERR! at cb (/usr/share/npm/lib/utils/npm-registry-client/request.js:31:9)
npm ERR! at Request._callback (/usr/share/npm/lib/utils/npm-registry-client/request.js:136:18)
npm ERR! at Request.callback (/usr/lib/nodejs/request/main.js:119:22)
npm ERR! at Request.<anonymous> (/usr/lib/nodejs/request/main.js:212:58)
npm ERR! at Request.emit (events.js:88:20)
npm ERR! at ClientRequest.<anonymous> (/usr/lib/nodejs/request/main.js:209:10)
npm ERR! at ClientRequest.emit (events.js:67:17)
npm ERR! at CleartextStream.<anonymous> (http.js:1137:11)
npm ERR! at CleartextStream.emit (events.js:67:17)
npm ERR! You may report this log at:
npm ERR! <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR! reportbug --attach /var/www/npm-debug.log npm
npm ERR!
npm ERR! System Linux 3.2.0-58-generic
npm ERR! command "node" "/usr/bin/npm" "install" "-g" "n"
npm ERR! cwd /var/www
npm ERR! node -v v0.6.12
npm ERR! npm -v 1.1.4
npm ERR! message failed to fetch from registry: n
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /var/www/npm-debug.log
npm not ok
I was trying to update the nodejs installation but i couldn't.
I followed the steps here.
Ok so i have answered my own question.
Aparently sudo apt-get install nodejs directly from the repository would only give you a maximum of v.0.06.
So what i did was the following
https://launchpad.net/~chris-lea/+archive/node.js/
i added the PPA, then did the whole install nodejs again.
Afterwhich, the version is now v.0.10
Hope this would help anyone in my case.

Categories