fablabbcn / smartcitizen-web

The Smart Citizen Kit platform
https://smartcitizen.me
GNU Affero General Public License v3.0
13 stars 8 forks source link

Upgrade node.js/AngularJS #445

Open oscgonfer opened 11 months ago

oscgonfer commented 11 months ago

Most of the time we are running into issues when maintaining the web. Node v9.8.0 is very old and bower is starting to complain already:

https://github.com/fablabbcn/smartcitizen-web/actions/runs/5654861339/job/15318782559#step:4:152

This happens, apparently due to old node versions: https://github.com/bower/bower/issues/2623

Would suggest to upgrade to a newer LTS version. In the short term, we can't deploy because certificates don't seem to work on bower, for which a solution is to add the environment variable:

NODE_OPTIONS=--use-openssl-ca

As per: https://github.com/bower/bower/issues/2608#issuecomment-1521355964 and already tested here: https://github.com/fablabbcn/smartcitizen-web/pull/446

oscgonfer commented 10 months ago

Update

To summarise: for now, it seems we can get away without more actions but this change will need to happen at some point because the stack seems to be getting old (although c'mon...).

Let's keep this issue open so that we can discuss upgrades for the many items that now are deprecated and see how we move forward.