Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97371

My git bash dose not recognize "enviroment path" when package.json scripts

$
0
0

I just trying to yarn start with git bash "start": "node scripts/start.js",
It always works when using PowerShell or CMD.
But not works on git bash.

But when i tried to node scripts/start.js instead yarn start with bash.
It works!

I tested git bash
yarn -v, node -v, npm -v,
every command was work well.

But not work on Scripts...

This is error message

'node' is not recognized as an internal or external command

And i tried to "startStart": "yarn start",
And this time bash give me this error message

'yarn ' is not recognized as an internal or external command

I checked my env PATH but all is fine.

--- ENV VS_CODE
OS : window 10
node : 13.5
npm : 6.13.4

I installed git-bash with git
And all install config is defaul-standard


Add

I think Git-Bash can find path when it alone
I think we should focus on that it can't find path only when it try to trigger package.json scripts

About .profile i didn't know what it is and i never had been create it.
If it is not default-exist i don't have it.


Viewing all articles
Browse latest Browse all 97371

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>