spawn C:\Windows\system32\cmd.exe;C:\Program Files\Git\bin ENOENT - node.js

hope all is well.
I am trying to run the wizard from https://github.com/0xProject/0x-launch-kit. I have successfully downloaded Node.js, Yarn, Docker and npx but after running the following command
npx #0x/launch-kit-wizard && docker-compose up
I am receiving spawn C:\Windows\system32\cmd.exe;C:\Program Files\Git\bin ENOENT .
I have already gone to computer>properties>Advance System Settings>Environment Variables> and added the required C:\Windows\system32\cmd.exe;C:\Program Files\Git\bin to path and ComSpec but i am getting still the same error.
Would really appreciate some help.
Thank you

I had a similar issue, and it turns out that one of my container images was connecting to an old path on my local machine, once I corrected that, everything started working again.
Another tip is to first ensure your docker is updated to the latest version.
Secondly, don't run the entire container at once, but rather run each of its images (sub containers) one by one, till they are all running to determine which image is breaking, which is how I found my offending image, hope this helps.

Run each sub container images one by one.

Related

Node cannot run serverless cmd

I tried updating both Serverless module and Node, but still receives the same error.
I count not even find the solution in the internet for this simple problem.
can someone suggest.
The issue for me was that I was missing the following directory in my Windows PATH env variable:
%AppData%\npm
Once I added that I could run serverless, SLS, etc.
Don't forget the restart your PC.

npm run graphql-deploy command stuck in Sanity

When I am running, the command npm run graphql-deploy in my local it stuck at lerna info Executing command in 1 package: "npm run graphql-deploy". Not moving forward.
And if I run same command in studio folder it stuck at:
GraphQL API deployed to:
https://qht1v59y.api.sanity.io/v1/graphql/development/default
Please refer screenshot
So due to this I am not able to deploy my changes. What's the issue here. How to fix this ?
If you never found a fix for this, it was merged into #sanity/cli. I just updated it and seems tow work fine now.
https://github.com/sanity-io/sanity/pull/2987

How do I fix my npm that seems to be infinitely looping?

I was trying to change my npm and npm-cache folders to d:\\npm-global and d:\\npm-cache
I managed to do a npm config set cache d:\npm-cache
When I tried to do a npm config set prefix d:\npm-global I accidentally put a ' in the folder string as I was hitting enter. I deleted the errant folder after trying a npm i -g gulp and to my horror, npm stopped working altogether, it just sits there with my command prompt rocking up to 50% CPU usage.
Help please! I've tried searching the registry and other places, even uninstalled and re-installed the nodejs msi package on Windows. This reset the D:\Program Files\nodejs\node_modules\npm\npmrc file.
Still no luck. I can't get npm to work again. :(
edit A little digging in and I realized there is a second node server running via Adobe Creative Cloud. I doubt this is the problem though as when I run npm from the cmd.exe prompt, the correct (d:\program files\nodejs) version of the npm server is executed for that process.
edit so only sometimes when I hit Control-C, I'll get this error:
seems like it's trying to find a file that doesn't exist. However, I cleared out the AppData\Roaming\npm folder and the reinstalls reset the default d:\program files\nodejs\....npm\npmrc file. I also made sure that the environment variable NODE_PATH is not set. It wasn't set when it was working. I set it when I was trying to make my changes.
You should be able to modify your config settings manually by modifying ~/.npmrc
#jakemingolla was right so I marked that answer as accepted (thanks Jake), but I also asked this in the NPM forum and did a little test after I got it working. I thought this might help someone: https://npm.community/t/i-killed-my-npm-on-windows-trying-to-move-some-folders-reinstalling-nodejs-isnt-resetting-the-problem/5743/8?u=chi11ax

Error while running the command npm run dev

I am starting to do a new application for the first time and i installed git and node.js and set the path.. With the link from bitbucket i cloned the project then i gave npm install.. Upto this everything was fine but when i gave npm run dev, it was throwing this error:
I think the issue was related to path and i don't know what to change in it. My path looks as below:
The other questions in the forums doesn't solve my issue.
Try to remove the first ';' in your PATH system environment variable. Check that your PATH does not end with ';'
Check also that you don't have multiple value for ComSpec. (and no semicolon)

Cannot find module 'assetmanager'

I'm trying to run the MEAN stack on windows. I've installed all the pre-requisites (I think) but when I try to start the server via the gulp command I get the error:
Error: Cannot find module 'assetmanager'.
IMAGE:
I have tried running npm install assetmanager which run fine but I still get this error.
This is my first time trying to run node on a machine (I should have used a linux box) so go easy on me as I am learning :-).
Any and all help appreciated.
David
I had exactly the same problem on Linux Mint 17.2.
The failing way: This was my first project that I'd generated and I don't think I had all the dependencies installed before I ran the init command (g++ was missing).
I tried the npm install assetmanager command as you did and then install worked. Running gulp after this, it got further but this time I was missing mongoose. I installed that then it couldn't find .../config/env/all so I sylinked the default.js config. Then running gulp again, errorhandler was missing. I figured it shouldn't be this hard so...
The working way: I deleted that failure of a project and init'd a new one and it worked. Unfortunately I'm not sure if the init didn't work the first time but I missed the error/warning or something else caused it. All I can recommend is try creating another project and see if that works.

Resources