-
Notifications
You must be signed in to change notification settings - Fork 70
Upgrade npm and node version #107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm running into google/docsy#265 building the docs for my project, which means I need Node >= 10 installed. |
Also, just as a note, it doesn't help with upgrading node itself. |
We're kind of stuck, unable to release a new major version of our software, until we can build the docs again. Would be fantastic if someone with experience in this Docker repo/system could update node.js to version 10 or newer sometime in the not-too-distant future. (The current node.js LTS version is |
I think we should just use nvm and install the latest LTS version of node instead of relying on the old one shipped with ubuntu |
There's also a PPA: https://github.com/nodesource/distributions/blob/master/README.md#manual-installation And for recent Ubuntu versions, snaps would be another option: https://github.com/nodejs/snap |
Exactly, I can not use readthedocs.org because of this reason. Basically because it is not possible to upgrade nodejs on readthedocs.org I can not release any new package as I need a link on the doc in advance. Image based on Ubuntu 20.xx would be great is it know when it will be completed? Also, I can not use conda:
Edit: I finally made it work. |
This is a part of the things blocking me from moving https://pradyunsg.me/furo/ to ReadTheDocs. It needs a reasonably new version of npm to generate the final assets (since those aren't checked in) and there's no good way to have that work on RTD. :( I'm all ears for what's a good way to make it work -- I basically need to do |
@pradyunsg see |
Hi @pradyunsg!
I'd love to have furo theme on Read the Docs! 🤩
Unfortunately, currently there is no good way to do this --only the workaround that it's on the description of this issue 😞. A "nicer" workaround, is to use conda and install the version of npm and nodejs required; as other people mentioned. Currently, we are using I'd say that most of the work from this repository is blocked on that discussion and it seems we don't have a clear path to move forward. I invite you all to read that PR and bring ideas if you know a better and cleaner way to solve this problem. |
I still haven't seen a way to upgrade node.js itself (not npm), but maybe I missed it. As someone not familiar with Python and its build environments, can someone explain to the rest of us the specific solution for upgrading node.js in a current build perhaps? |
@raucao see my previous comment, I am using nodejs=14.15.1 |
readthedocs Docker containers have too old a Node.js version, but we can install a newer one with Conda.
readthedocs Docker containers have too old a Node.js version, but we can install a newer one with Conda.
readthedocs Docker containers have too old a Node.js version, but we can install a newer one with Conda.
readthedocs Docker containers have too old a Node.js version, but we can install a newer one with Conda.
We are working on new Docker images in #166 where |
Just a note that we are running into this as well in jupyter-book/thebe#469 - that's a JS build that depends on a newer version of NPM. Just FYI! |
@choldgraf I have a good part of the new implementation working locally. I'd like to use I found that you made some changes in that PR to use GitHub Actions because of these limitations, but it seems that only this set of commits may be what I'm looking for https://github.com/executablebooks/thebe/pull/469/files/9149864f40168400e100e4e3be823785335ea8b9 --can you confirm this? |
That sounds right to me! Perhaps @stevejpurves would be willing to coordinate with you to help test something out? |
@humitos that does look right, and I'd much rather go in that direction with a build running on RTD! I've created a clean branch/PR here with just the changes so far that we need. which is better to build on than the other, which went a bit exploratory. btw... in those changes, I am using a local yarn install, as I was unable to install globally |
Thanks @stevejpurves for your reply.
I'll do some tests with that PR and my local Read the Docs development instance and I will comment in that PR if I find any issue. Thanks!
We are not planning to install
In the future, running commands outside the |
Not for now. I've commented in jupyter-book/thebe#472, so we can continue this talk there. Thanks! |
Hi all! In #166 we implemented the ability to install node 14.x and 16.x --which is still in beta. Would you like to give it a try and let us know if it works? You need to add something like this to your build:
os: "ubuntu-20.04"
tools:
python: "3.9"
nodejs: "16"
Thanks! |
There are some Python/JS libraries that requires a more up to date version of
npm
.I've been using this workaround for now, but it would be good to have this implemented at the Docker image level.
The text was updated successfully, but these errors were encountered: