Comments (5)
configure this option: https://github.com/FirebaseExtended/action-hosting-deploy#firebasetoolsversion-string
In my case, GitHub Actions workflow works with version 12.9.1 of Firebase Tools for node 16.
from action-hosting-deploy.
Try this in your .yml
file to manually select Node 20:
steps:
- uses: actions/checkout@v4 # https://github.com/actions/checkout
- uses: actions/setup-node@v4 # https://github.com/actions/setup-node
with:
node-version: 20
- ...
from action-hosting-deploy.
I can confirm the same issue here, deployment were still working yesterday and today it fails with same error.
Deploying to Firebase preview channel develop
/opt/hostedtoolcache/node/16.20.2/x64/bin/npx firebase-tools@latest hosting:channel:deploy develop --expires 30d --project **** --json
npm WARN exec The following package was not found and will be installed: [email protected]
npm WARN EBADENGINE Unsupported engine ***
npm WARN EBADENGINE package: '[email protected]',
npm WARN EBADENGINE required: *** node: '>=18.0.0 || >=20.0.0' ***,
npm WARN EBADENGINE current: *** node: 'v16.20.2', npm: '8.19.4'***
npm WARN EBADENGINE ***
Firebase CLI v13.0.0 is incompatible with Node.js v16.20.2 Please upgrade Node.js to version >=18.0.0 || >=20.0.0
The process '/opt/hostedtoolcache/node/16.20.2/x64/bin/npx' failed with exit code 1
Retrying deploy with the --debug flag for better error output
Until yesterday, the same CI
Deploying to Firebase preview channel develop
/opt/hostedtoolcache/node/16.20.2/x64/bin/npx firebase-tools@latest hosting:channel:deploy develop --expires 30d --project *** --json
npm WARN exec The following package was not found and will be installed: [email protected]
...
"status": "success",
So purely based on the log, it looks like it's the firebase-tools update 12.9.1
-> 13.0.0
which cause some issues with this github-action still using node16.
I guess two methods:
- the easier would be to upgrade this action to node 18 or 20
- the other would be to pin dependencies major version (for the moment to
[email protected]
), to not run into these kind of issues when dependencies updates with breaking changes. The currentnpx firebase-tools@latest
doesn't look like a good idea
from action-hosting-deploy.
I am totally new to firebase, I created a very simple project in vue2, then i followed the instructions on the main site to add firebase with npm install firebase
and I got this similar message.
I'm using windows 10 and node 20.10.0.
May you please help me, suggesting - if available - the simplest steps to make it work? I can't believe firebase is unusable with vue2.
from action-hosting-deploy.
Related Issues (20)
- [BUG] Unexpected token λ in JSON at position 0
- [BUG] GitHub comment not appearing HOT 2
- [BUG] Github action does not find my project HOT 3
- [BUG] HOT 4
- [BUG] [vite-plugin-pwa:build] Cannot read properties of null (reading 'tagName') HOT 1
- Why not have a single deploy action?
- [BUG] HOT 2
- [BUG] [HttpError]: Resource not accessible by integration HOT 4
- [BUG] stream-json parse error
- Are github environments relevant for making a preview channel deploys?
- [BUG] Cannot find module 'vite'
- Preview build fails with yarn
- Add a way to use different filename for firebase.json
- QUESTION: How to enable PR preview for forked PRs
- Node.js 16 actions are deprecated HOT 16
- [BUG] preview hosts are not being added to the authorized domains list HOT 6
- QUESTION: DO we have a way to pass env variables from Github Secrets inside this Actions via env attribute?
- [ENHANCEMENT] Disable auto-commenting to PR for matrix jobs HOT 1
- [BUG] Unexpected token r in JSON at position 2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from action-hosting-deploy.