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

Issue in running copyhooks command post npm install. "cp" is not recognized as an internal or external command error msg #4

Open
NSubram3 opened this issue Jul 20, 2020 · 2 comments

Comments

@NSubram3
Copy link

"postinstall": "npm run copyhooks"

After the npm install command gets completed, the below error is occurring while running the post install script in package.json file.
bw issue degbgr

I'm using windows 10 machine. Tried to change 'cp' in the command to 'copy' but then I got 'syntax incorrect' as the error msg.

@abhi291096
Copy link

abhi291096 commented Jul 20, 2020

Please execute the command again by commenting out the following line and run:

"postinstall": "npm run copyhooks"

Let me know how it goes.

@sank8dalvi
Copy link
Member

@NSubram3
The cp command doesn't work on Windows machine by default.
So you have to remove the postinstall line from package.json for it to work on Windows

"postinstall": "npm run copyhooks"

You can also use git bash and add cp to environment variables of windows.

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

3 participants