codesandbox / codesandbox/codesandbox-client

Specify npm version in CodeSandbox CI config

Open
#6,746 0 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
13.6k
Forks
2.4k
Avg merge
6d 19h
Merged PRs (30d)
2

Description

https://github.com/codesandbox/codesandbox-client/issues/5249

This issue was closed ^ but I don't believe it has been resolved.

There is no way to specify the version of npm to use in CodeSandbox CI. Right now CodeSandbox CI is using npm version 6.14.15. This doesn't support npm workspaces. The install command in npm 6.14.15 just installs deps from the root package.json, not the workspaces package.jsons.

I am currently getting around this by installing npm 8.5.0 & then installing in my installCommand in the CodeSandbox CI config file.

Feature Request: Can we have a way to specify the npm version in the CodeSandbox config?

Thanks! I love this feature its extremely helpful in developing npm packages 🙏

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the CodeSandbox CI configuration and how its installCommand is handled; the issue does not name a source file or test. Trace where the npm version is selected, then verify that the configuration can choose a newer npm version and install workspace dependencies as requested.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
ci-cd, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.