3 ms·
The problem is that Phoenix requires Node 5 and the current stable (which is what vanilla apt-get will install) is 4. Which is indeed a bit confusing.
by fishnchips 11y ago
The problem is that Phoenix requires Node 5 and the current stable (which is what vanilla apt-get will install) is 4. Which is indeed a bit confusing.
- joshmanders 11y agoAh I see, why does Phoenix require Node 5?
- deathtrader666 11y agoPhoenix needs NodeJS for the asset pipeline of the frontend.
- hosh 11y agoYep. Which if we were just creating something without a front-end, then we can ditch the whole node ecosystem.
- nilliams 11y agoI generally recommend using nvm [1] to install Node, it's certainly a painless way to get Node 5, then it's also easy to switch version later, or maybe downgrade to the LTS when you're doing 'work work' (`nvm use 4`). Just remember to set a default, e.g. if you're mostly using Node for Phoenix: `nvm alias default 5`. It also sets up your global modules directory so that you don't need sudo to install global modules like gulp-cli (should you need any, though it's quite rare that you do nowadays). [1] https://github.com/creationix/nvm https://github.com/creationix/nvm