Skip to content
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

npm install fails even after adding packages missing from devcontainer setup #1031

Open
colindean opened this issue Nov 17, 2024 · 2 comments

Comments

@colindean
Copy link
Contributor

I discovered these to be necessary as I created a codespace and found that npm install failed until all of these were installed.

sudo apt install libpixman-1-dev libcairo2-dev libpango1.0-dev

After which, running npm install still errors.

Logfile

@colindean
Copy link
Contributor Author

colindean commented Nov 17, 2024

If I switch node to v20 with nvm install 20 && nvm use 20 && npm install, npm install completes.

@rradczewski
Copy link
Contributor

Our instructions in the README are outdated. It should generally be enough to run nvm install inside the dev container to install the required node version (as per .nvmrc).

There's a way to do this postAttach so that it happens automatically when a devcontainer is started (not created), but I'd have to look into that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants