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

[Bug]: unable to link puppeteer #7753

Closed
pawel-id opened this issue Nov 8, 2021 · 6 comments
Closed

[Bug]: unable to link puppeteer #7753

pawel-id opened this issue Nov 8, 2021 · 6 comments

Comments

@pawel-id
Copy link

pawel-id commented Nov 8, 2021

Bug description

Steps to reproduce the problem:

  1. install puppeteer globally npm install -g puppeteer@11.0.0
  2. create empty node project npm init --yes
  3. link global puppeteer into the project npm link puppeteer fails with an error sh: husky: command not found

The error is not happening on previous puppeteer versions.

This kind of setup we are using to have single global puppeteer within docker and few node projects reusing the global puppeteer to keep docker image reasonably small size.

Puppeteer version

11.0.0

Node.js version

v14.17.4

npm version

7.24.2

What operating system are you seeing the problem on?

Linux, macOS

Relevant log output

npm ERR! code 127
npm ERR! path /Users/pawlik/.nvm/versions/node/v14.17.4/lib/node_modules/puppeteer
npm ERR! command failed
npm ERR! command sh -c node typescript-if-required.js && husky install
npm ERR! sh: husky: command not found
@pawel-id pawel-id added the bug label Nov 8, 2021
@pawel-id
Copy link
Author

pawel-id commented Nov 8, 2021

I think it is because this #7727 adding husky call here https://github.com/puppeteer/puppeteer/blob/v11.0.0/package.json#L20

@timmhayes
Copy link

@pawel-id I'm having the same issue with a similar workflow. Did you find a way around this?

@pawel-id
Copy link
Author

@timmhayes workaround: install husky globally before puppeteer npm i -g husky

@timmhayes
Copy link

@pawel-id Thanks, I'll give that a try.

@stale
Copy link

stale bot commented Jun 23, 2022

We're marking this issue as unconfirmed because it has not had recent activity and we weren't able to confirm it yet. It will be closed if no further activity occurs within the next 30 days.

@stale stale bot added the unconfirmed label Jun 23, 2022
@stale
Copy link

stale bot commented Jul 25, 2022

We are closing this issue. If the issue still persists in the latest version of Puppeteer, please reopen the issue and update the description. We will try our best to accomodate it!

@stale stale bot closed this as completed Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants