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.
Related
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
I just got a new laptop for work, and trying to set it up for work. As I tried to run a service-build in my terminal as the command of
"./data-management/run_update_version && docker-compose -f docker-compose/docker-compose.yml build"
I got the error as below.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! myfrontend#3.3.0 build: `react-scripts build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the myfrontend#3.3.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! /root/.npm/_logs/2020-11-23T06_10_10_366Z-debug.log
I have tried many solutions such as clean cache, redo the npm install, but none of them worked. Can anyone please help.
So apparently, I figured out that this error means that there is no enough memory in the system. What I did is to go into docker desktop setting, and increase the memory, and that solved everything.
We currently do sudo npm i instead of npm i to circumvent this issue. Our Ubuntu team members can't do this however because nvm isn't installed for root. NVM and N both have this same issue.
geoyws-mbp:ifca-construction-react geoyws$ npm i
> ifca-construction-react#0.1.0 prepare /Users/geoyws/work/src/ifca/ifca-react/src/modules/ifca-construction-react
> npm.cmd run compile
sh: npm.cmd: command not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! ifca-construction-react#0.1.0 prepare: `npm.cmd run compile`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the ifca-construction-react#0.1.0 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/geoyws/.npm/_logs/2019-10-03T09_40_46_545Z-debug.log
The problem was that one of our engineers changed our npm start script from npm run compile to npm.cmd run compile in our package.json. Either that or create-react-app did that, which is very unwise because people work with various OSes on the same codebase.
I am learning how to make a mobile app using react native but every time I run in the terminal npm run eject it gives me this error at the end I tried several npm versions but I keep always getting this error
Ejected successfully!
Please consider letting us know why you ejected in this survey:
goo.gl/forms/iD6pl218r7fn9N0d2
The batch file cannot be found.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! hello-world2#0.1.0 eject: `react-native-scripts eject`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the hello-world2#0.1.0 eject 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\AppData\Roaming\npm-cache\_logs\2018-06-05T11_28_47_708Z-debug.log
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.