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

Export PDF (puppeteer) not work in macOS #18

Open
tengattack opened this issue Nov 7, 2017 · 2 comments
Open

Export PDF (puppeteer) not work in macOS #18

tengattack opened this issue Nov 7, 2017 · 2 comments

Comments

@tengattack
Copy link

tengattack commented Nov 7, 2017

Platform: macOS 10.12.6

I have already installed puppeteer by

npm i -g puppeteer

As I dig into this problem, I found the module global-modules return a value

'/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/lib/node_modules' 

instead of

'/usr/local/lib/node_modules'
@tengattack tengattack changed the title Export PDF (puppeteer) not work Export PDF (puppeteer) not work in macOS Nov 7, 2017
@shd101wyy
Copy link
Owner

shd101wyy commented Nov 7, 2017 via email

@tengattack
Copy link
Author

tengattack commented Nov 9, 2017

Yep, I found a work around is to run npm link puppeteer in directory:
/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/lib/node_modules

BTW, we need create it first:

mkdir -p "/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/lib/node_modules"

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