Error trying to deploy canvacord to herkou - javascript

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.

Related

I have this error message "npm ERR! Linux 5.4.72-microsoft-standard-WSL2" on my terminal when I run "npm install"

I have this error message : npm ERR! Linux 5.4.72-microsoft-standard-WSL2 on my terminal when I run npm install. I'm on a vue.js app and I have this message since I installed vuetify.
Here is the whole error message :
npm ERR! Linux 5.4.72-microsoft-standard-WSL2
npm ERR! argv "/home/josephine/.nvm/versions/node/v14.15.0/bin/node" "/home/josephine/.nvm/versions/node/v14.15.0/bin/npm" "install"
npm ERR! node v14.15.0
npm ERR! npm v3.10.10
npm ERR! cb.apply is not a function.
I also cannot install the latest version of npm I think this is related to the problem. (I have this version v3.10.10).
And when I run npm run serve I have this :
> vue-cli-service serve
sh: 1: vue-cli-service: not found
npm ERR! Linux 5.4.72-microsoft-standard-WSL2
npm ERR! argv "/home/josephine/.nvm/versions/node/v14.15.0/bin/node" "/home/josephine/.nvm/versions/node/v14.15.0/bin/npm" "run" "serve"
npm ERR! node v14.15.0
npm ERR! npm v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! my-app#0.1.0 serve: vue-cli-service serve
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the my-app#0.1.0 serve script 'vue-cli-service serve'.
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 my-app package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! vue-cli-service serve
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs my-app
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls my-app
npm ERR! There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?`.
I have the Vue.JS version # vue / cli 4.5.12.
At last, I have a Window PC and I have installed linux and ubuntu.
I thank you in advance if you can help me.
Your npm version is outdated. Your version is 3.x but we're currently at 7.x
Run
npm update -g
and then try again.

Deploying React app to Github Pages issue

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.

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

Getting error while installing web-bluetooth npm in windows

This is the error i got. Please someone tell me what's this error means
C:\Users\SVSN390\Documents>npm install web-bluetooth
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\Program Files (x86)\nodejs\\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "web-bluetooth"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! code SELF_SIGNED_CERT_IN_CHAIN
npm ERR! self signed certificate in certificate chain
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\SVSN390\Documents\npm-debug.log

Can't execute web-server in AngularJS phonecat application

I downloaded AngularJS phonecat standard app, and installed Node. But when I move to directory with code and try 'npm start' I get the following error:
> angular-phonecat#0.0.0 start /Users/marya/JS:HTML:CSS/angular-phonecat
> http-server -a 0.0.0.0 -p 8000
sh: http-server: command not found
npm ERR! Darwin 13.4.0
npm ERR! argv "node" "/usr/local/Cellar/nvm/0.17.2/v0.10.32/bin/npm" "start"
npm ERR! node v0.10.32
npm ERR! npm v2.1.4
npm ERR! code ELIFECYCLE
npm ERR! angular-phonecat#0.0.0 start: `http-server -a 0.0.0.0 -p 8000`
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the angular-phonecat#0.0.0 start script.
npm ERR! This is most likely a problem with the angular-phonecat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! http-server -a 0.0.0.0 -p 8000
npm ERR! You can get their info via:
npm ERR! npm owner ls angular-phonecat
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/marya/JS:HTML:CSS/angular-phonecat/npm-debug.log
What does it mean? How can I fix it? Thanks in advance.
Well it does seem like you haven't installed the http-server package.
Try the line below. It should work if it is included in your package.json
$ npm install
otherwise try:
$ npm install http-server

Categories