Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy command saying not recognised as internal or external command #239

Open
huzaifa4725 opened this issue Aug 6, 2019 · 8 comments
Open

Comments

@huzaifa4725
Copy link

I am using GAD with gitlab. Everything working fine but i want to run npm install after git pull.
so i put "deploy": "npm install" it saying npm install not recognized as internal or external command. However i put "echo deploying" it still saying the same.
How can i solve this issue ? My problem is to run npm install after git pull. npm is in path variable i checked this.

@Letme
Copy link
Contributor

Letme commented Aug 6, 2019

put npm in path of the GAD user or put absolute path to npm command: for example: /usr/bin/npm install

@huzaifa4725
Copy link
Author

I am running on windows server 2016. So what we do in case of windows ?
Also do tell me how we can run two commands ? need to add twice deploy
Thanks

@Letme
Copy link
Contributor

Letme commented Aug 6, 2019

No idea about windows and paths, but for sure this sounds like a path issue.

I use && in between commands, but there are quite few other options (again no idea how you chain commands in windows).

@huzaifa4725
Copy link
Author

In windows command prompt npm install works fine but it does not working in deploy

@Letme
Copy link
Contributor

Letme commented Aug 6, 2019

Also in windows you have different users and there path is also different. So question is if npm install runs in the command prompt (also this can be different on windows as you have cmd.exe, command.exe, powershell and few more) which your GAD user uses.

@huzaifa4725
Copy link
Author

Its the same user and command prompt path is same for all users. So how can i know where deploy is running command ? because its not running echo even

@Letme
Copy link
Contributor

Letme commented Aug 6, 2019

Did you test this command in git bash? Although that for sure should have echo, so its strange. (I assume you installed it through pip and then went to install git bash and configure it as in readme?)

@huzaifa4725
Copy link
Author

git bash is installed on pc. npm install running fine on git bash and cmd. i tested echo also working fine but deploy is not running anything. So i guess there is some path issue or i dont know where its running command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants