5 ms·
This is worthy of my up vote because I've tried setting up phoenix framework on fresh Ubuntu and it's a pain in the ass
by rajeemcariazo 11y ago
This is worthy of my up vote because I've tried setting up phoenix framework on fresh Ubuntu and it's a pain in the ass
- hosh 11y agoIt is? Most of my problem was with Node.js and not with Erlang or Elixir.
- joshmanders 11y agoWhat's your problem with node? I do a lot of Node with Docker so I might be able to help.
- bpicolo 11y agoUbuntu doesn't have a convenient apt command for latest node. And there is renaming of the binary from node -> nodejs which breaks things. There's some not-built-in apt repos to fix it
- fishnchips 11y agoThe 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