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

How to test v5 Candidate #1769

Open
vishnuc opened this issue Jan 7, 2025 · 2 comments
Open

How to test v5 Candidate #1769

vishnuc opened this issue Jan 7, 2025 · 2 comments
Labels
question General question.

Comments

@vishnuc
Copy link

vishnuc commented Jan 7, 2025

Hi , Previously I would just run npm run build and it worked fine , now its giving lots of error

npm error code 1
npm error path /Users/vishnuc/Desktop/project/node_test/tv5/lightweight-charts/node_modules/@memlab/core/node_modules/puppeteer
npm error command failed
npm error command sh -c node install.mjs
npm error Error: ERROR: Failed to set up chrome-headless-shell v127.0.6533.88! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.
npm error     at file:///Users/vishnuc/Desktop/project/node_test/tv5/lightweight-charts/node_modules/@memlab/core/node_modules/puppeteer/lib/esm/puppeteer/node/install.js:84:27
npm error     at async Promise.all (index 1)
npm error     at async downloadBrowser (file:///Users/vishnuc/Desktop/project/node_test/tv5/lightweight-charts/node_modules/@memlab/core/node_modules/puppeteer/lib/esm/puppeteer/node/install.js:90:9) {
npm error   [cause]: [Error: ENOENT: no such file or directory, open '/Users/vishnuc/Desktop/project/node_test/tv5/lightweight-charts/node_modules/.cache/puppeteer/chrome-headless-shell/127.0.6533.88-chrome-headless-shell-mac-arm64.zip'] {
npm error     errno: -2,
npm error     code: 'ENOENT',
npm error     syscall: 'open',
npm error     path: '/Users/vishnuc/Desktop/project/node_test/tv5/lightweight-charts/node_modules/.cache/puppeteer/chrome-headless-shell/127.0.6533.88-chrome-headless-shell-mac-arm64.zip'
npm error   }
npm error }
npm error A complete log of this run can be found in: /Users/vishnuc/.npm/_logs/2025-01-07T12_41_03_743Z-debug-0.log
@SlicedSilver
Copy link
Contributor

If you aren't trying to run the screenshot (or other e2e tests) then you can use the following command when installing the npm packages:

PUPPETEER_SKIP_DOWNLOAD=true npm install

otherwise if you do want to run the e2e tests then you might need to nuke your node_modules folder (delete it) and clear out your npm cache before trying to run npm install again. However another option to try is to remove the cacheDirectory setting in the .puppeteerrc.cjs file before running npm install. This would most likely fix your issue.

We install the chrome binary within the node_modules/.cache/puppeteer folder so that it is correctly cached and reused across our CI pipeline actions, however this may not work correctly for you depending on the steps you are taking during the installation phase.

@SlicedSilver SlicedSilver added the question General question. label Jan 7, 2025
@vishnuc
Copy link
Author

vishnuc commented Jan 7, 2025

Thanks , if I want to use in my production site , I want to use build:prod or build:release

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

No branches or pull requests

2 participants