Npm install not working with gulp - node.js

Anyone able to guide me on this error? Happens when I run npm i, bower asks me for a version of angular for workspace but I have been installing the specific one required (1.5.8), any help is much appreciated!
> workspace#1.0.0 postinstall C:\dev\site
> bower install && ./node_modules/.bin/gulp
'.' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! workspace#1.0.0 postinstall: `bower install && ./node_modules/.bin/gulp`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the workspace#1.0.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Related

NPM fails with the code: npm ERR! code ELIFECYCLE

I am fairly new to node and javascript. I am trying to run this on my localhost
https://github.com/bitpay/wallet
originally I was using node.js v14 but I was getting an error. I did some research and found that I should downgrade to node.js v11.
After doing so I get an error after trying to run npm install.
'rm' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! copay#12.1.1 env:dev: `rm -f src/environments/index.ts && cp src/environments/dev.ts src/environments/index.ts
npm ERR!
npm ERR! # Environment set to: dev
npm ERR!
npm ERR! `
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the copay#12.1.1 env:dev 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\Jacob\AppData\Roaming\npm-cache\_logs\2021-03-01T19_15_48_533Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! copay#12.1.1 postinstall: `npm run env:dev && npm run prompt && npm run patch:bwc && npm run patch:walletconnec
t`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the copay#12.1.1 postinstall 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\Jacob\AppData\Roaming\npm-cache\_logs\2021-03-01T19_15_48_594Z-debug.log
I'm not sure exactly what to do to fix this. I've read other posts and tried to do what they suggest. I deleted the node_modules file and clear the cache but I am still getting the same error. I've noticed it's saying 'rm' is not recognized as an internal or external command. I've tried to change it to del instead of rm but that doesn't seem to help either. Any suggestions on how to get this to work on my localhost?
this is the first line from the log your shared indicating what is the error
'rm' is not recognized as an internal or external command,
it happens since (as you mentioned) you are running windows and i assume you are running npm under cmd or powershell, which does not have rm command natively.
i would suggest your to switch to windows subsystem for linux, which should have system command like rm and see whether it solves your issue.

what I can when there is error while running electron app

I made my first electron app through electronjs documentation.
I ran the application using npm start command,
but that showing me this error
$ npm start
my-electron-app#1.0.0 start C:\Users\aksha\OneDrive\Desktop\ElcDocStarter\my-electron-app
electron .
'electron' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! my-electron-app#1.0.0 start: `electron .`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the my-electron-app#1.0.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\aksha\AppData\Roaming\npm-cache\_logs\2021-02-17T08_15_08_284Z-debug.log
Install electron as global NPM module:
npm i -g electron

Error while installing an ejs Template engine,

I am getting this error while installing ejs as node is not recognized,but in system variable it is present.what to do..
$ npm install ejs
node --harmony ./postinstall.js
'node' is not recognized as an internal or external command,
operable program or batch file.
npm WARN contact_list#1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ejs#3.1.3 postinstall: node --harmony ./postinstall.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ejs#3.1.3 postinstall 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\SM185585\AppData\Roaming\npm-cache_logs\2020-05-28T13_08_27_678Z-debug.log

npm install error after uninstalling Hyperledger-composer - Blockchain

Hello I'm currently learning hyperledger composer but I reinstalled it and i'm installing it again. Now when I npm install, I get the error below. If anyone can help me out that would be great.
➜ Dabbous-Innopay npm install
> fabric-dev-servers#0.0.14 prepare /Users/alydabbous/code/Dabbous-Innopay
> npm run build-archives
> fabric-dev-servers#0.0.14 build-archives /Users/alydabbous/code/Dabbous-Innopay
> gulp --gulpfile .travis/gulp.js
[16:45:08] No gulpfile found
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! fabric-dev-servers#0.0.14 build-archives: `gulp --gulpfile .travis/gulp.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fabric-dev-servers#0.0.14 build-archives 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/alydabbous/.npm/_logs/2018-11-05T15_45_08_550Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! fabric-dev-servers#0.0.14 prepare: `npm run build-archives`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the fabric-dev-servers#0.0.14 prepare 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/alydabbous/.npm/_logs/2018-11-05T15_45_08_587Z-debug.log
Make sure You are Using Node 8.9 or bellow:
node -v
if output is more than 8.9 then uninstall node and re-install it with 8.9 version or use nvm(Node Version Manager). Google it you can find above process easily.

Npm start gives the error

everyone!
I am trying to run default task on npm run command on Windows 10.
That is an error that I have got while using it.
npm ERR! code ELIFECYCLE
npm ERR! errno 9
npm ERR! builderLight#0.0.15 start: `bower install && gulp --debug`
npm ERR! Exit status 9
npm ERR!
npm ERR! Failed at the builderLight#0.0.15 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\2018-04-29T15_01_45_882Z-debug.log
How to fix this bug?
You simply have to run first: npm install or bower install

Resources