https://github.com/iansu/npm-concurrency-test
Test concurrent npm installs
https://github.com/iansu/npm-concurrency-test
Last synced: about 2 months ago
JSON representation
Test concurrent npm installs
- Host: GitHub
- URL: https://github.com/iansu/npm-concurrency-test
- Owner: iansu
- Created: 2022-01-20T20:41:18.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-27T00:56:06.000Z (about 2 years ago)
- Last Synced: 2025-01-26T06:44:52.433Z (4 months ago)
- Language: JavaScript
- Size: 426 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# npm Concurrency Test
Test concurrent installs with npm. Also includes Yarn v1 for comparison.
This repo contains 10 apps bootstrapped with [Create React App](https://github.com/facebook/create-react-app). It does not use workspaces and attempts to run `npm install` (or `yarn install`) in all 10 projects in parallel.
## Usage
### npm
`node npm-install.js`
### Yarn
`node yarn-install.js`
Between tests you will want to clear out `node_modules` by running `npm run clean`.
## Expected Results
Yarn v1 has issues with concurrent cache access so you should see errors that look like this:
```txt
error An unexpected error occurred: "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.0.15.tgz: ENOENT: no such file or directory, open '/Users/iansu/Library/Caches/Yarn/v6/npm-tailwindcss-3.0.15-e4db219771eb7678a3bfd97b3f6c8fe20be0a410-integrity/node_modules/tailwindcss/.yarn-tarball.tgz'".
```When running with npm (tested with npm 8.3.0) there should be no errors.