For some reason, it was trying to install a private npm package (from my main repo yarn.lock), failing over that:
Checking for existing Wrangler installation /usr/local/bin/npx --no-install wrangler --version npm error npx canceled due to missing packages and no YES option: ["[email protected]"] npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2024-07-31T13_20_24_246Z-debug-0.log ā ļø Wrangler not found or version is incompatible. Installing...š„ Installing Wrangler /usr/local/bin/npm i [email protected] npm error code E404 npm error 404 Not Found - GET https://registry.npmjs.org/@wix%2fambassador-bootstrap-plugin - Not found npm error 404 npm error 404 '@wix/ambassador-bootstrap-plugin@^1.0.617' is not in this registry. npm error 404 npm error 404 Note that you can also install from a npm error 404 tarball, folder, http url, or git url. npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2024-07-31T13_20_31_572Z-debug-0.log
Checking for existing Wrangler installation /usr/local/bin/npx --no-install wrangler --version npm error npx canceled due to missing packages and no YES option: ["[email protected]"] npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2024-07-31T13_20_24_246Z-debug-0.log ā ļø Wrangler not found or version is incompatible. Installing...š„ Installing Wrangler /usr/local/bin/npm i [email protected] npm error code E404 npm error 404 Not Found - GET https://registry.npmjs.org/@wix%2fambassador-bootstrap-plugin - Not found npm error 404 npm error 404 '@wix/ambassador-bootstrap-plugin@^1.0.617' is not in this registry. npm error 404 npm error 404 Note that you can also install from a npm error 404 tarball, folder, http url, or git url. npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2024-07-31T13_20_31_572Z-debug-0.log
I tried having
packageManager: npm
packageManager: npm
but this causes the installation to get stuck:
npm error Exit handler never called! npm error This is an error with npm itself. Please report this error at:
npm error Exit handler never called! npm error This is an error with npm itself. Please report this error at:
Is there an option to pre-install Wrangler? What is the best practice here? What am I doing wrong? Thanks!