I'm trying to deploy my first project on a server with C Panel, I followed this guide but when I press "run JS script" I get the following error:
returncode: 126
stdout:
> node-mysql#1.0.0 start /home/manteia1/Area_SFTP
> nodemon app.js
stderr:
npm WARN lifecycle The node binary used for scripts is /home/manteia1/nodevenv/Area_SFTP/8/bin/node but npm is using /opt/alt/alt-nodejs8/root/usr/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
sh: /home/manteia1/Area_SFTP/node_modules/.bin/nodemon: Permission denied
npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ERR! node-mysql#1.0.0 start: `nodemon app.js`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the node-mysql#1.0.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/manteia1/.npm/_logs/2021-02-10T14_38_41_625Z-debug.log
Related
Run NPM Install
returncode: 126
stdout:
> zenitcouture#1.0.0 start /home/zenitcou/zenitcouture
> nodemon app.js
stderr:
npm WARN lifecycle The node binary used for scripts is /home/zenitcou/nodevenv/zenitcouture/10/bin/node but npm is using /opt/alt/alt-nodejs10/root/usr/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with.
sh: /home/zenitcou/zenitcouture/node_modules/.bin/nodemon: Permission denied
npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ERR! zenitcouture#1.0.0 start: `nodemon app.js`
npm ERR! Exit status 126
npm ERR!
npm ERR! Failed at the zenitcouture#1.0.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/zenitcou/.npm/_logs/2021-10-09T17_17_22_982Z-debug.log
the above is my code. I'm trying to upload it to my cpanel and run it but i keep getting this error. I've stopped the app, and restarted it, the same error.
An error occured during installation of modules. The operation was performed, but check availability of application has failed. Web application responds, but its return code "500 Internal Server Error" or content type before operation "text/html; charset=UTF-8" doesn't equal to contet type after operation "text/html; charset=UTF-8".
i also get this error above if i dont stop the app before installing npm
After Installing Webpack the following command does not allow me to progress further in my project.
npm run build
Error on Console
> react-complete-guide#0.1.0 build C:\Users\pythonbuddha\Desktop\to_experiment\to-do-list
> node scripts/build.js
Creating an optimized production build...
Failed to compile.
Failed to minify the code from this file:
./node_modules/nanoid/index.browser.js:35
Read more here: bit.ly/2tRViJ9
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-complete-guide#0.1.0 build: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-complete-guide#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! C:\Users\pythonbuddha\AppData\Roaming\npm-cache\_logs\2021-01-08T10_56_07_043Z-debug.log
The link Read more here: bit.ly/2tRViJ9 has no explanation for such issues.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! dandelion_pro#1.4.0 start: `cross-env NODE_ENV=development node server`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the dandelion_pro#1.4.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\user\AppData\Roaming\npm-cache\_logs\2020-02-13T12_19_16_574Z-debug.log
This is how it appears on the terminal when attempting to start the project.
Are you in app folder?
Did you do npm install?
Can you provide us package.json?
The problem resolved when I restarted and ran the project.
I have cloned the angular-seed to my basic and try to run the protactor with the below command and got the below error.
npm run protractor
npm ERR! node v5.0.0
npm ERR! npm v2.10.1
npm ERR! code ELIFECYCLE
npm ERR! angular-seed#0.0.0 protractor: `protractor e2e-tests/protractor.conf.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-seed#0.0.0 protractor script 'protractor e2e-tests/protractor.conf.js'.
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! protractor e2e-tests/protractor.conf.js
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:\Projects\LJ\npm-debug.log
C:\Projects\LJ>
Did you try running this one protractor e2e-tests/protractor.conf.js ?
I am having some trouble with grunt. I am using a small software piece writing by us to publish and make an email, however when I run the command to create the emails a grunt error happens and I have tried fixing it but I cannot, it works on the rest of my teams computer but it does not work on mine. Could someone please help?
Running "imagemin:dynamic" (imagemin) task
Fatal error: Cannot read property 'contents' of undefined
Thank you for the help
These are other errors I get:
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "dev"
npm ERR! node v4.2.4
npm ERR! npm v3.5.3
npm ERR! code ELIFECYCLE
npm ERR! emails#1.0.0 dev: `grunt default`
npm ERR! Exit status 3
npm ERR!
npm ERR! Failed at the emails#1.0.0 dev script 'grunt default'.
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 emails package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! grunt default
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs emails
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls emails
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/iPatriot/projects/aliada/emails/npm-debug.log