bun icon indicating copy to clipboard operation
bun copied to clipboard

[bun install] SegmentationFault with 443, 502, 404 error code

Open ild0tt0re opened this issue 2 years ago • 4 comments

Version

0.1.10

Platform

Darwin macangeloannunziata.local 21.6.0 Darwin Kernel Version 21.6.0: Wed Aug 10 14:25:27 PDT 2022; root:xnu-8020.141.5~2/RELEASE_X86_64 x86_64

What steps will reproduce the bug?

MY CURRENT MONOREPO SETUP

  • Nx dev tool (with ./apps/** and ./libs/** folders for packages)
  • pnpm package manager (package.json in root folder ./) -> see package.txt
  • Private npm registry (Nexus) behind vpn

✅ ALL WORK!

BUN INSTALLATION

  1. Create config file only to add my registry URL (see bunfig.toml below)
  2. run bun install
  3. SegmentationFault at 0x0F5F9D6DFEFBFFFF

bunfig.toml

# Using scoped packages with bun install
[install.scopes]

# Scope name      The value can be a URL string or an object
"@mycompany" = { url = "https://packages.tools.mycompany.xyz/repository/npm-all/" }

[install]
registry = "https://packages.tools.mycompany.xyz/repository/npm-all/"

# Install for production? This is the equivalent to the "--production" CLI argument
production = false

# Don't actually install
dryRun = true

# Install optionalDependencies (default: true)
optional = true

# Install local devDependencies (default: true)
dev = true

# Install peerDependencies (default: false)
peer = false

# When using `bun install -g`, install packages here
globalDir = "~/.bun/install/global"

# When using `bun install -g`, link package bins here
globalBinDir = "~/.bun/bin"

# cache-related configuration
[install.cache]
# The directory to use for the cache
dir = "~/.bun/install/cache"

# Don't load from the global cache.
# Note: bun may still write to node_modules/.cache
disable = false

# Always resolve the latest versions from the registry
disableManifest = false


# Lockfile-related configuration
[install.lockfile]

# Print a yarn v1 lockfile
# Note: it does not load the lockfile, it just converts bun.lockb into a yarn.lock
print = "yarn"

# Path to read bun.lockb from
path = "bun.lockb"

# Path to save bun.lockb to
savePath = "bun.lockb"

# Save the lockfile to disk
save = true

How often does it reproduce? Is there a required condition?

Always

What is the expected behavior?

Bun install dependencies correctly

What do you see instead?

COMPLETE LOG:


END OUTPUT: SegmentationFault at 0x0F5F9D6DFEFBFFFF

----- bun meta ----- Bun v0.1.10 (fe7180bc) macOS x64 21.6.0 InstallCommand: bunfig HTTP: 1943 Elapsed: 43494ms | User: 2505ms | Sys: 3232ms RSS: 0.60GB | Peak: 0.60GB | Commit: 1.02GB | Faults: 975 ----- bun meta -----

Ask for #help in https://bun.sh/discord or go to https://bun.sh/issues

Additional information

No response

ild0tt0re avatar Sep 05 '22 19:09 ild0tt0re

Thank you for this report

Jarred-Sumner avatar Sep 07 '22 03:09 Jarred-Sumner

Can you verify this still happens as of Bun v0.2.0? It likely was fixed in Bun v0.1.12

Jarred-Sumner avatar Oct 16 '22 02:10 Jarred-Sumner

Can you verify this still happens as of Bun v0.2.0? It likely was fixed in Bun v0.1.12

Hi @Jarred-Sumner!

I just tested the latest release with the following result

  • a lot of 502 errors
  • no package binaries installed (i have to install the package one to one with bun install $packageName to be able to exec the bins)
  • executing bun install more times give me different results
  • some packages not found

ild0tt0re avatar Oct 17 '22 21:10 ild0tt0re

We've made pretty significant changes/improvement to bun install. If you have a moment, do you mind trying again on Bun 0.5.8, after running bun upgrade?

Electroid avatar Feb 27 '23 17:02 Electroid

We've made pretty significant changes/improvement to bun install. If you have a moment, do you mind trying again on Bun 0.5.8, after running bun upgrade?

Now I have a new mac M2 arm based. I tried bun install on my new hardware but I got a lot of the following errors:

  • error: Unterminated string literal
  • error: PackageFailedToParse parsing package manifest for <package-name>

ild0tt0re avatar Mar 02 '23 19:03 ild0tt0re

@ild0tt0re can you paste the package.json of the main project where this is happening (or a simplified version)? It sounds like a JSON parsing bug

Jarred-Sumner avatar Mar 02 '23 19:03 Jarred-Sumner

@ild0tt0re can you paste the package.json of the main project where this is happening (or a simplified version)? It sounds like a JSON parsing bug

My package.json:

{
  "name": "npm.scope",
  "version": "0.0.0",
  "license": "MIT",
  "scripts": {},
  "private": true,
  "dependencies": {
    "@algolia/client-search": "4.14.3",
    "@apollo/client": "^3.7.3",
    "@mycompany/wasabi": "^2.61.0",
    "@cubejs-client/core": "^0.31.30",
    "@cubejs-client/react": "^0.31.30",
    "@datadog/browser-rum": "^4.28.1",
    "@dnd-kit/core": "^5.0.3",
    "@dnd-kit/modifiers": "^5.0.0",
    "@dnd-kit/sortable": "^6.0.1",
    "@recurly/react-recurly": "1.2.7",
    "@remirror/pm": "1.0.22",
    "@remirror/react": "1.0.43",
    "@remirror/react-editors": "0.1.89",
    "@remirror/styles": "1.1.4",
    "@swc/helpers": "~0.4.14",
    "@xstate/react": "3.0.1",
    "algoliasearch": "^4.14.3",
    "apollo-link-rest": "0.9.0",
    "auth0-js": "^9.20.0",
    "class.extend": "^0.9.2",
    "clsx": "^1.2.1",
    "core-js": "^3.27.1",
    "date-fns": "^2.29.3",
    "dd-trace": "^2.18.0",
    "deepmerge": "^4.2.2",
    "document-register-element": "1.14.10",
    "downloadjs": "^1.4.7",
    "graphql": "^16.6.0",
    "graphql-anywhere": "^4.2.8",
    "history": "^5.3.0",
    "html-to-react": "^1.5.0",
    "humanize-duration": "^3.27.3",
    "instantsearch.js": "4.49.2",
    "intersection-observer": "^0.12.2",
    "intl-tel-input": "^17.0.19",
    "jwt-decode": "^3.1.2",
    "launchdarkly-react-client-sdk": "^2.29.1",
    "ldclient-js": "^2.10.2",
    "lodash": "^4.17.21",
    "moment": "^2.29.4",
    "moment-business": "^3.0.1",
    "next": "13.1.6",
    "next-auth": "^4.18.7",
    "next-compose-plugins": "^2.2.1",
    "polished": "^4.2.2",
    "prism-react-renderer": "^1.3.5",
    "prop-types": "15.8.1",
    "qs": "6.11.0",
    "query-string": "^7.1.1",
    "rc-progress": "^3.4.1",
    "rc-slider": "^10.1.0",
    "react": "18.2.0",
    "react-autosuggest": "^10.1.0",
    "react-container-query": "^0.12.1",
    "react-content-loader": "^6.2.0",
    "react-day-picker": "^7.4.10",
    "react-dom": "18.2.0",
    "react-google-recaptcha": "^2.1.0",
    "react-google-recaptcha-v3": "^1.10.1",
    "react-helmet": "^6.1.0",
    "react-hook-form": "^7.41.2",
    "react-instantsearch-core": "^6.38.1",
    "react-instantsearch-dom": "^6.38.1",
    "react-instantsearch-hooks-web": "^6.38.1",
    "react-is": "18.2.0",
    "react-lazyload": "^3.2.0",
    "react-modal": "^3.16.1",
    "react-notification-system": "^0.4.0",
    "react-onclickout": "^2.0.8",
    "react-phone-number-input": "3.2.13",
    "react-redux": "8.0.5",
    "react-scroll": "^1.8.9",
    "react-select": "^4.3.1",
    "react-slick": "^0.29.0",
    "react-slidedown": "2.4.7",
    "react-syntax-highlighter": "^15.5.0",
    "react-toastify": "^8.2.0",
    "recharts": "2.2.0",
    "redux": "^4.2.0",
    "redux-devtools-extension": "^2.13.9",
    "redux-form": "^8.3.9",
    "redux-saga": "^1.2.2",
    "redux-saga-thunk": "^0.7.3",
    "refractor": "4.8.0",
    "regenerator-runtime": "0.13.11",
    "remirror": "1.0.89",
    "reselect": "^4.1.7",
    "sharp": "^0.31.3",
    "slugify": "^1.6.5",
    "socket.io-client": "^4.5.4",
    "striptags": "^3.2.0",
    "styled-components": "5.3.6",
    "styled-theme": "^0.3.3",
    "swiper": "8.4.5",
    "tslib": "^2.4.1",
    "universal-cookie": "^4.0.4",
    "uuid": "^8.3.2",
    "validator": "^13.7.0",
    "video.js": "^7.20.3",
    "xss": "^1.0.14",
    "xstate": "4.35.1"
  },
  "devDependencies": {
    "@angular-devkit/schematics": "^15.0.4",
    "@babel/core": "7.20.12",
    "@babel/plugin-proposal-private-property-in-object": "^7.20.5",
    "@babel/preset-env": "7.20.2",
    "@babel/preset-react": "7.18.6",
    "@babel/preset-typescript": "7.18.6",
    "@jscutlery/semver": "^2.29.3",
    "@mdx-js/loader": "2.2.1",
    "@mdx-js/react": "^2.2.1",
    "@next/bundle-analyzer": "^13.1.1",
    "@nrwl/cli": "15.7.2",
    "@nrwl/devkit": "15.7.2",
    "@nrwl/eslint-plugin-nx": "15.7.2",
    "@nrwl/jest": "15.7.2",
    "@nrwl/js": "15.7.2",
    "@nrwl/linter": "15.7.2",
    "@nrwl/next": "15.7.2",
    "@nrwl/nx-plugin": "15.7.2",
    "@nrwl/react": "15.7.2",
    "@nrwl/rollup": "15.7.2",
    "@nrwl/storybook": "15.7.2",
    "@nrwl/web": "15.7.2",
    "@nrwl/workspace": "15.7.2",
    "@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
    "@rollup/plugin-commonjs": "^24.0.0",
    "@rollup/plugin-replace": "5.0.2",
    "@rollup/plugin-url": "^7.0.0",
    "@storybook/addon-a11y": "7.0.0-beta.55",
    "@storybook/addon-actions": "7.0.0-beta.55",
    "@storybook/addon-docs": "7.0.0-beta.55",
    "@storybook/addon-essentials": "7.0.0-beta.55",
    "@storybook/addon-interactions": "7.0.0-beta.55",
    "@storybook/addon-knobs": "^6.4.0",
    "@storybook/addon-links": "7.0.0-beta.55",
    "@storybook/addon-mdx-gfm": "7.0.0-beta.55",
    "@storybook/addons": "7.0.0-beta.55",
    "@storybook/api": "7.0.0-beta.55",
    "@storybook/blocks": "^7.0.0-beta.55",
    "@storybook/client-api": "7.0.0-beta.55",
    "@storybook/components": "7.0.0-beta.55",
    "@storybook/core-events": "7.0.0-beta.55",
    "@storybook/core-server": "7.0.0-beta.55",
    "@storybook/jest": "^0.0.11-next.0",
    "@storybook/nextjs": "7.0.0-beta.55",
    "@storybook/react": "7.0.0-beta.55",
    "@storybook/react-webpack5": "^7.0.0-beta.55",
    "@storybook/test-runner": "0.10.0-next.8",
    "@storybook/testing-library": "^0.0.14-next.1",
    "@storybook/theming": "7.0.0-beta.55",
    "@svgr/cli": "^6.5.1",
    "@svgr/rollup": "^6.5.1",
    "@svgr/webpack": "^6.5.1",
    "@swc-node/register": "^1.4.2",
    "@swc/cli": "~0.1.59",
    "@swc/core": "^1.3.24",
    "@swc/jest": "^0.2.24",
    "@swc/plugin-styled-components": "1.5.33",
    "@testing-library/dom": "^8.19.1",
    "@testing-library/jest-dom": "^5.16.5",
    "@testing-library/react": "13.4.0",
    "@testing-library/react-hooks": "^8.0.1",
    "@testing-library/user-event": "^14.4.3",
    "@types/auth0-js": "^9.14.7",
    "@types/downloadjs": "^1.4.3",
    "@types/enzyme": "^3.10.12",
    "@types/humanize-duration": "3.27.1",
    "@types/jest": "29.2.4",
    "@types/jscodeshift": "^0.11.6",
    "@types/lodash": "^4.14.191",
    "@types/node": "18.11.18",
    "@types/react": "18.0.26",
    "@types/react-autosuggest": "^10.1.5",
    "@types/react-dom": "18.0.10",
    "@types/react-instantsearch-core": "6.26.2",
    "@types/react-instantsearch-dom": "^6.12.3",
    "@types/react-is": "^17.0.3",
    "@types/react-modal": "^3.13.1",
    "@types/react-redux": "7.1.24",
    "@types/react-scroll": "^1.8.5",
    "@types/react-select": "^4.0.18",
    "@types/react-test-renderer": "^18.0.0",
    "@types/recharts": "^1.8.24",
    "@types/sharp": "0.31.0",
    "@types/styled-components": "5.1.26",
    "@types/testing-library__jest-dom": "5.14.5",
    "@typescript-eslint/eslint-plugin": "5.47.1",
    "@typescript-eslint/parser": "5.47.1",
    "@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
    "babel-jest": "29.3.1",
    "babel-loader": "9.1.2",
    "babel-plugin-styled-components": "2.0.7",
    "copy-webpack-plugin": "^11.0.0",
    "css-loader": "^6.7.3",
    "csstype": "3.1.1",
    "dotenv": "^16.0.3",
    "enzyme": "^3.11.0",
    "eslint": "8.30.0",
    "eslint-config-airbnb": "^19.0.4",
    "eslint-config-airbnb-base": "^15.0.0",
    "eslint-config-airbnb-typescript": "^17.0.0",
    "eslint-config-next": "13.1.1",
    "eslint-config-prettier": "8.5.0",
    "eslint-plugin-cypress": "^2.12.1",
    "eslint-plugin-import": "2.26.0",
    "eslint-plugin-jest": "^27.1.7",
    "eslint-plugin-jsx-a11y": "6.6.1",
    "eslint-plugin-prettier": "^4.2.1",
    "eslint-plugin-promise": "^6.1.1",
    "eslint-plugin-react": "7.31.11",
    "eslint-plugin-react-hooks": "4.6.0",
    "eslint-plugin-simple-import-sort": "^8.0.0",
    "eslint-plugin-storybook": "^0.6.8",
    "eslint-plugin-unicorn": "^45.0.2",
    "file-loader": "^6.2.0",
    "html-webpack-plugin": "^5.5.0",
    "http-server": "^14.1.1",
    "jest": "29.3.1",
    "jest-circus": "29.3.1",
    "jest-environment-jsdom": "29.3.1",
    "jest-environment-node": "29.3.1",
    "jest-runner": "29.3.1",
    "jest-styled-components": "^7.1.1",
    "jsonc-eslint-parser": "^2.1.0",
    "launchdarkly-js-client-sdk": "^3.0.0",
    "mini-css-extract-plugin": "2.7.2",
    "msw": "^0.49.2",
    "msw-storybook-addon": "^1.7.0",
    "ngx-deploy-npm": "^5.2.0",
    "node-fetch": "3.3.0",
    "ntl": "^5.1.0",
    "nx": "15.7.2",
    "playwright": "1.30.0",
    "postcss-loader": "7.0.2",
    "prettier": "2.8.1",
    "react-refresh": "^0.14.0",
    "react-test-renderer": "18.2.0",
    "rollup": "^3.9.0",
    "rollup-plugin-copy": "^3.4.0",
    "rollup-plugin-peer-deps-external": "^2.2.4",
    "rollup-plugin-terser": "^7.0.2",
    "rollup-plugin-typescript2": "^0.34.1",
    "rollup-plugin-visualizer": "^5.8.3",
    "serve": "14.2.0",
    "shell-quote": "1.7.4",
    "source-map-loader": "^4.0.1",
    "storybook": "7.0.0-beta.55",
    "storybook-addon-designs": "7.0.0-beta.2",
    "storybook-addon-launchdarkly": "1.0.2",
    "storybook-addon-swc": "^1.1.9",
    "style-loader": "^3.3.1",
    "stylus": "^0.59.0",
    "stylus-loader": "^7.1.0",
    "swc-loader": "0.1.15",
    "terser-webpack-plugin": "^5.3.6",
    "timezone-mock": "1.3.6",
    "ts-jest": "29.0.3",
    "ts-node": "10.9.1",
    "typedoc": "^0.23.23",
    "typescript": "4.9.4",
    "url-loader": "^4.1.1",
    "wait-on": "^7.0.1",
    "webpack": "^5.75.0",
    "webpack-dev-server": "^4.11.1",
    "webpack-merge": "^5.8.0",
    "webpack-node-externals": "^3.0.0",
    "webpack-sources": "^3.2.3"
  },
  "optionalDependencies": {
    "@commitlint/cli": "^17.3.0",
    "@commitlint/config-conventional": "^17.3.0",
    "@docusaurus/core": "2.2.0",
    "@docusaurus/module-type-aliases": "2.2.0",
    "@docusaurus/preset-classic": "2.2.0",
    "@docusaurus/types": "2.2.0",
    "@neuralegion/cypress-har-generator": "^5.3.4",
    "@nrwl/cypress": "15.7.2",
    "@nx-plus/docusaurus": "15.0.0-rc.0",
    "@testing-library/react-17": "npm:@testing-library/[email protected]",
    "concurrently": "^7.6.0",
    "cypress": "^12.2.0",
    "enquirer": "^2.3.6",
    "git-cz": "^4.9.0",
    "husky": "^8.0.2",
    "jscodeshift": "^0.14.0",
    "lint-staged": "^13.1.0",
    "nx-stylelint": "^14.0.2",
    "react-17": "npm:react@^17.0.2",
    "react-dom-17": "npm:[email protected]",
    "react-is-17": "npm:[email protected]",
    "react-test-renderer-17": "npm:[email protected]",
    "stylelint": "^14.16.1",
    "stylelint-config-idiomatic-order": "^9.0.0",
    "stylelint-config-prettier": "^9.0.4",
    "stylelint-config-recommended": "^9.0.0",
    "stylelint-config-standard": "^29.0.0",
    "stylelint-config-styled-components": "^0.1.1",
    "stylelint-processor-styled-components": "^1.10.0",
    "swiper-6": "npm:swiper@^6.8.4"
  },
  "pnpm": {
    "overrides": {
      "prosemirror-commands": "1.2.2",
      "prosemirror-state": "1.3.4",
      "prosemirror-transform": "1.4.2"
    },
    "patchedDependencies": {
      "[email protected]": "patches/[email protected]"
    }
  },
  "volta": {
    "node": "18.13.0",
    "pnpm": "7.27.1"
  },
  "packageManager": "[email protected]",
  "ntl": {
    "runner": "pnpm"
  },
  "repository": "[email protected]:mycompany/npm.scope.git",
  "msw": {
    "workerDirectory": "apps/nextjs/public"
  }
}

ild0tt0re avatar Mar 02 '23 19:03 ild0tt0re

I retried and I had to stop the script after 5 minutes because it seems to have gone in loop .... [9066/9275]

ild0tt0re avatar Mar 02 '23 20:03 ild0tt0re

@ild0tt0re I have tried bun install with your package.json above:

$ BUN_DEBUG_QUIET_LOGS=1 bun-debug install
bun install v0.5.8_debug (efdf6474)
  🔍 @mycompany/wasabi [840/1720] 
error: package "@mycompany/wasabi" not found registry.npmjs.org/@mycompany/wasabi 404
error: @mycompany/wasabi@^2.61.0 failed to resolve

Are you perhaps using a custom npm registry?

alexlamsl avatar Mar 02 '23 21:03 alexlamsl

@ild0tt0re I have tried bun install with your package.json above:

$ BUN_DEBUG_QUIET_LOGS=1 bun-debug install
bun install v0.5.8_debug (efdf6474)
  🔍 @mycompany/wasabi [840/1720] 
error: package "@mycompany/wasabi" not found registry.npmjs.org/@mycompany/wasabi 404
error: @mycompany/wasabi@^2.61.0 failed to resolve

Are you perhaps using a custom npm registry?

Oh Yes sorry, as reported in bunfig.toml we use Nexus as private npm registry

[install] registry = "https://packages.tools.mycompany.xyz/repository/npm-all/" 

Don't worry about that package, you can remove it 🙂

ild0tt0re avatar Mar 02 '23 22:03 ild0tt0re

I can replicate the slowness/stuck progress using your custom registry − while https://registry.npmjs.org (the default) finishes downloading within a few seconds (before reporting on the missing package as mentioned above).

Investigating.

alexlamsl avatar Mar 03 '23 00:03 alexlamsl

Taking out @mycompany/wasabi and using default NPM registry:

$ bun install
bun install v0.5.8 (c0a49e40)
 + @commitlint/[email protected]
 + @commitlint/[email protected]
 + @docusaurus/[email protected]
 + @docusaurus/[email protected]
 + @docusaurus/[email protected]
 + @docusaurus/[email protected]
 + @neuralegion/[email protected]
 + @nrwl/[email protected]
 + @nx-plus/[email protected]
 + @testing-library/[email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + @angular-devkit/[email protected]
 + @babel/[email protected]
 + @babel/[email protected]
 + @babel/[email protected]
 + @babel/[email protected]
 + @babel/[email protected]
 + @jscutlery/[email protected]
 + @mdx-js/[email protected]
 + @mdx-js/[email protected]
 + @next/[email protected]
 + @nrwl/[email protected]
 + @nrwl/[email protected]
 + @nrwl/[email protected]
 + @nrwl/[email protected]
 + @nrwl/[email protected]
 + @nrwl/[email protected]
 + @nrwl/[email protected]
 + @nrwl/[email protected]
 + @nrwl/[email protected]
 + @nrwl/[email protected]
 + @nrwl/[email protected]
 + @nrwl/[email protected]
 + @nrwl/[email protected]
 + @pmmmwh/[email protected]
 + @rollup/[email protected]
 + @rollup/[email protected]
 + @rollup/[email protected]
 + @storybook/[email protected]
 + @storybook/[email protected]
 + @storybook/[email protected]
 + @storybook/[email protected]
 + @storybook/[email protected]
 + @storybook/[email protected]
 + @storybook/[email protected]
 + @storybook/[email protected]
 + @storybook/[email protected]
 + @storybook/[email protected]
 + @storybook/[email protected]
 + @storybook/[email protected]
 + @storybook/[email protected]
 + @storybook/[email protected]
 + @storybook/[email protected]
 + @storybook/[email protected]
 + @storybook/[email protected]
 + @storybook/[email protected]
 + @storybook/[email protected]
 + @storybook/[email protected]
 + @storybook/[email protected]
 + @storybook/[email protected]
 + @svgr/[email protected]
 + @svgr/[email protected]
 + @svgr/[email protected]
 + @swc-node/[email protected]
 + @swc/[email protected]
 + @swc/[email protected]
 + @swc/[email protected]
 + @swc/[email protected]
 + @testing-library/[email protected]
 + @testing-library/[email protected]
 + @testing-library/[email protected]
 + @testing-library/[email protected]
 + @testing-library/[email protected]
 + @types/[email protected]
 + @types/[email protected]
 + @types/[email protected]
 + @types/[email protected]
 + @types/[email protected]
 + @types/[email protected]
 + @types/[email protected]
 + @types/[email protected]
 + @types/[email protected]
 + @types/[email protected]
 + @types/[email protected]
 + @types/[email protected]
 + @types/[email protected]
 + @types/[email protected]
 + @types/[email protected]
 + @types/[email protected]
 + @types/[email protected]
 + @types/[email protected]
 + @types/[email protected]
 + @types/[email protected]
 + @types/[email protected]
 + @types/[email protected]
 + @types/[email protected]
 + @typescript-eslint/[email protected]
 + @typescript-eslint/[email protected]
 + @wojtekmaj/[email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + @algolia/[email protected]
 + @apollo/[email protected]
 + @cubejs-client/[email protected]
 + @cubejs-client/[email protected]
 + @datadog/[email protected]
 + @dnd-kit/[email protected]
 + @dnd-kit/[email protected]
 + @dnd-kit/[email protected]
 + @recurly/[email protected]
 + @remirror/[email protected]
 + @remirror/[email protected]
 + @remirror/[email protected]
 + @remirror/[email protected]
 + @swc/[email protected]
 + @xstate/[email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]
 + [email protected]

 3171 packages installed [9.60s]

alexlamsl avatar Mar 03 '23 00:03 alexlamsl

Looks like there's an issue with the custom registry in provisioning dependencies:

$ BUN_CONFIG_MAX_HTTP_REQUESTS=1 bun install
bun install v0.5.8 (c0a49e40)
error: @angular-devkit/schematics@^15.0.4 failed to resolve
error: @babel/[email protected] failed to resolve
error: @babel/plugin-proposal-private-property-in-object@^7.20.5 failed to resolve
error: @babel/[email protected] failed to resolve
error: @babel/[email protected] failed to resolve
error: @babel/[email protected] failed to resolve
error: @jscutlery/semver@^2.29.3 failed to resolve
error: @mdx-js/[email protected] failed to resolve
error: @mdx-js/react@^2.2.1 failed to resolve
error: @next/bundle-analyzer@^13.1.1 failed to resolve
error: @nrwl/[email protected] failed to resolve
error: @nrwl/[email protected] failed to resolve
error: @nrwl/[email protected] failed to resolve
error: @nrwl/[email protected] failed to resolve
error: @nrwl/[email protected] failed to resolve
error: @nrwl/[email protected] failed to resolve
error: @nrwl/[email protected] failed to resolve
error: @nrwl/[email protected] failed to resolve
error: @nrwl/[email protected] failed to resolve
error: @nrwl/[email protected] failed to resolve
error: @nrwl/[email protected] failed to resolve
error: @nrwl/[email protected] failed to resolve
error: @nrwl/[email protected] failed to resolve
error: @pmmmwh/react-refresh-webpack-plugin@^0.5.10 failed to resolve
error: @rollup/plugin-commonjs@^24.0.0 failed to resolve
error: @rollup/[email protected] failed to resolve
error: @rollup/plugin-url@^7.0.0 failed to resolve
error: @storybook/[email protected] failed to resolve
error: @storybook/[email protected] failed to resolve
error: @storybook/[email protected] failed to resolve
error: @storybook/[email protected] failed to resolve
error: @storybook/[email protected] failed to resolve
error: @storybook/addon-knobs@^6.4.0 failed to resolve
error: @storybook/[email protected] failed to resolve
error: @storybook/[email protected] failed to resolve
error: @storybook/[email protected] failed to resolve
error: @storybook/[email protected] failed to resolve
error: @storybook/blocks@^7.0.0-beta.55 failed to resolve
error: @storybook/[email protected] failed to resolve
error: @storybook/[email protected] failed to resolve
error: @storybook/[email protected] failed to resolve
error: @storybook/[email protected] failed to resolve
error: @storybook/jest@^0.0.11-next.0 failed to resolve
error: @storybook/[email protected] failed to resolve
error: @storybook/[email protected] failed to resolve
error: @storybook/react-webpack5@^7.0.0-beta.55 failed to resolve
error: @storybook/[email protected] failed to resolve
error: @storybook/testing-library@^0.0.14-next.1 failed to resolve
error: @storybook/[email protected] failed to resolve
error: @svgr/cli@^6.5.1 failed to resolve
error: @svgr/rollup@^6.5.1 failed to resolve
error: @svgr/webpack@^6.5.1 failed to resolve
error: @swc-node/register@^1.4.2 failed to resolve
error: @swc/cli@~0.1.59 failed to resolve
error: @swc/core@^1.3.24 failed to resolve
error: @swc/jest@^0.2.24 failed to resolve
error: @swc/[email protected] failed to resolve
error: @testing-library/dom@^8.19.1 failed to resolve
error: @testing-library/jest-dom@^5.16.5 failed to resolve
error: @testing-library/[email protected] failed to resolve
error: @testing-library/react-hooks@^8.0.1 failed to resolve
error: @testing-library/user-event@^14.4.3 failed to resolve
error: @types/auth0-js@^9.14.7 failed to resolve
error: @types/downloadjs@^1.4.3 failed to resolve
error: @types/enzyme@^3.10.12 failed to resolve
error: @types/[email protected] failed to resolve
error: @types/[email protected] failed to resolve
error: @types/jscodeshift@^0.11.6 failed to resolve
error: @types/lodash@^4.14.191 failed to resolve
error: @types/[email protected] failed to resolve
error: @types/[email protected] failed to resolve
error: @types/react-autosuggest@^10.1.5 failed to resolve
error: @types/[email protected] failed to resolve
error: @types/[email protected] failed to resolve
error: @types/react-instantsearch-dom@^6.12.3 failed to resolve
error: @types/react-is@^17.0.3 failed to resolve
error: @types/react-modal@^3.13.1 failed to resolve
error: @types/[email protected] failed to resolve
error: @types/react-scroll@^1.8.5 failed to resolve
error: @types/react-select@^4.0.18 failed to resolve
error: @types/react-test-renderer@^18.0.0 failed to resolve
error: @types/recharts@^1.8.24 failed to resolve
error: @types/[email protected] failed to resolve
error: @types/[email protected] failed to resolve
error: @types/[email protected] failed to resolve
error: @typescript-eslint/[email protected] failed to resolve
error: @typescript-eslint/[email protected] failed to resolve
error: @wojtekmaj/enzyme-adapter-react-17@^0.8.0 failed to resolve
error: [email protected] failed to resolve
error: [email protected] failed to resolve
error: [email protected] failed to resolve
error: copy-webpack-plugin@^11.0.0 failed to resolve
error: css-loader@^6.7.3 failed to resolve
error: [email protected] failed to resolve
error: dotenv@^16.0.3 failed to resolve
error: enzyme@^3.11.0 failed to resolve
error: [email protected] failed to resolve
error: eslint-config-airbnb@^19.0.4 failed to resolve
error: eslint-config-airbnb-base@^15.0.0 failed to resolve
error: eslint-config-airbnb-typescript@^17.0.0 failed to resolve
error: [email protected] failed to resolve
error: [email protected] failed to resolve
error: eslint-plugin-cypress@^2.12.1 failed to resolve
error: [email protected] failed to resolve
error: eslint-plugin-jest@^27.1.7 failed to resolve
error: [email protected] failed to resolve
error: eslint-plugin-prettier@^4.2.1 failed to resolve
error: eslint-plugin-promise@^6.1.1 failed to resolve
error: [email protected] failed to resolve
error: [email protected] failed to resolve
error: eslint-plugin-simple-import-sort@^8.0.0 failed to resolve
error: eslint-plugin-storybook@^0.6.8 failed to resolve
error: eslint-plugin-unicorn@^45.0.2 failed to resolve
error: file-loader@^6.2.0 failed to resolve
error: html-webpack-plugin@^5.5.0 failed to resolve
error: http-server@^14.1.1 failed to resolve
error: [email protected] failed to resolve
error: [email protected] failed to resolve
error: [email protected] failed to resolve
error: [email protected] failed to resolve
error: [email protected] failed to resolve
error: jest-styled-components@^7.1.1 failed to resolve
error: jsonc-eslint-parser@^2.1.0 failed to resolve
error: launchdarkly-js-client-sdk@^3.0.0 failed to resolve
error: [email protected] failed to resolve
error: msw@^0.49.2 failed to resolve
error: msw-storybook-addon@^1.7.0 failed to resolve
error: ngx-deploy-npm@^5.2.0 failed to resolve
error: [email protected] failed to resolve
error: ntl@^5.1.0 failed to resolve
error: [email protected] failed to resolve
error: [email protected] failed to resolve
error: [email protected] failed to resolve
error: [email protected] failed to resolve
error: react-refresh@^0.14.0 failed to resolve
error: [email protected] failed to resolve
error: rollup@^3.9.0 failed to resolve
error: rollup-plugin-copy@^3.4.0 failed to resolve
error: rollup-plugin-peer-deps-external@^2.2.4 failed to resolve
error: rollup-plugin-terser@^7.0.2 failed to resolve
error: rollup-plugin-typescript2@^0.34.1 failed to resolve
error: rollup-plugin-visualizer@^5.8.3 failed to resolve
error: [email protected] failed to resolve
error: [email protected] failed to resolve
error: source-map-loader@^4.0.1 failed to resolve
error: [email protected] failed to resolve
error: [email protected] failed to resolve
error: [email protected] failed to resolve
error: storybook-addon-swc@^1.1.9 failed to resolve
error: style-loader@^3.3.1 failed to resolve
error: stylus@^0.59.0 failed to resolve
error: stylus-loader@^7.1.0 failed to resolve
error: [email protected] failed to resolve
error: terser-webpack-plugin@^5.3.6 failed to resolve
error: [email protected] failed to resolve
error: [email protected] failed to resolve
error: [email protected] failed to resolve
error: typedoc@^0.23.23 failed to resolve
error: [email protected] failed to resolve
error: url-loader@^4.1.1 failed to resolve
error: wait-on@^7.0.1 failed to resolve
error: webpack@^5.75.0 failed to resolve
error: webpack-dev-server@^4.11.1 failed to resolve
error: webpack-merge@^5.8.0 failed to resolve
error: webpack-node-externals@^3.0.0 failed to resolve
error: webpack-sources@^3.2.3 failed to resolve
error: @algolia/[email protected] failed to resolve
error: @apollo/client@^3.7.3 failed to resolve
error: @cubejs-client/core@^0.31.30 failed to resolve
error: @cubejs-client/react@^0.31.30 failed to resolve
error: @datadog/browser-rum@^4.28.1 failed to resolve
error: @dnd-kit/core@^5.0.3 failed to resolve
error: @dnd-kit/modifiers@^5.0.0 failed to resolve
error: @dnd-kit/sortable@^6.0.1 failed to resolve
error: @recurly/[email protected] failed to resolve
error: @remirror/[email protected] failed to resolve
error: @remirror/[email protected] failed to resolve
error: @remirror/[email protected] failed to resolve
error: @remirror/[email protected] failed to resolve
error: @swc/helpers@~0.4.14 failed to resolve
error: @xstate/[email protected] failed to resolve
error: algoliasearch@^4.14.3 failed to resolve
error: [email protected] failed to resolve
error: auth0-js@^9.20.0 failed to resolve
error: class.extend@^0.9.2 failed to resolve
error: clsx@^1.2.1 failed to resolve
error: core-js@^3.27.1 failed to resolve
error: date-fns@^2.29.3 failed to resolve
error: dd-trace@^2.18.0 failed to resolve
error: deepmerge@^4.2.2 failed to resolve
error: [email protected] failed to resolve
error: downloadjs@^1.4.7 failed to resolve
error: graphql@^16.6.0 failed to resolve
error: graphql-anywhere@^4.2.8 failed to resolve
error: history@^5.3.0 failed to resolve
error: html-to-react@^1.5.0 failed to resolve
error: humanize-duration@^3.27.3 failed to resolve
error: [email protected] failed to resolve
error: intersection-observer@^0.12.2 failed to resolve
error: intl-tel-input@^17.0.19 failed to resolve
error: jwt-decode@^3.1.2 failed to resolve
error: launchdarkly-react-client-sdk@^2.29.1 failed to resolve
error: ldclient-js@^2.10.2 failed to resolve
error: lodash@^4.17.21 failed to resolve
error: moment@^2.29.4 failed to resolve
error: moment-business@^3.0.1 failed to resolve
error: [email protected] failed to resolve
error: next-auth@^4.18.7 failed to resolve
error: next-compose-plugins@^2.2.1 failed to resolve
error: polished@^4.2.2 failed to resolve
error: prism-react-renderer@^1.3.5 failed to resolve
error: [email protected] failed to resolve
error: [email protected] failed to resolve
error: query-string@^7.1.1 failed to resolve
error: rc-progress@^3.4.1 failed to resolve
error: rc-slider@^10.1.0 failed to resolve
error: [email protected] failed to resolve
error: react-autosuggest@^10.1.0 failed to resolve
error: react-container-query@^0.12.1 failed to resolve
error: react-content-loader@^6.2.0 failed to resolve
error: react-day-picker@^7.4.10 failed to resolve
error: [email protected] failed to resolve
error: react-google-recaptcha@^2.1.0 failed to resolve
error: react-google-recaptcha-v3@^1.10.1 failed to resolve
error: react-helmet@^6.1.0 failed to resolve
error: react-hook-form@^7.41.2 failed to resolve
error: react-instantsearch-core@^6.38.1 failed to resolve
error: react-instantsearch-dom@^6.38.1 failed to resolve
error: react-instantsearch-hooks-web@^6.38.1 failed to resolve
error: [email protected] failed to resolve
error: react-lazyload@^3.2.0 failed to resolve
error: react-modal@^3.16.1 failed to resolve
error: react-notification-system@^0.4.0 failed to resolve
error: react-onclickout@^2.0.8 failed to resolve
error: [email protected] failed to resolve
error: [email protected] failed to resolve
error: react-scroll@^1.8.9 failed to resolve
error: react-select@^4.3.1 failed to resolve
error: react-slick@^0.29.0 failed to resolve
error: [email protected] failed to resolve
error: react-syntax-highlighter@^15.5.0 failed to resolve
error: react-toastify@^8.2.0 failed to resolve
error: [email protected] failed to resolve
error: redux@^4.2.0 failed to resolve
error: redux-devtools-extension@^2.13.9 failed to resolve
error: redux-form@^8.3.9 failed to resolve
error: redux-saga@^1.2.2 failed to resolve
error: redux-saga-thunk@^0.7.3 failed to resolve
error: [email protected] failed to resolve
error: [email protected] failed to resolve
error: [email protected] failed to resolve
error: reselect@^4.1.7 failed to resolve
error: sharp@^0.31.3 failed to resolve
error: slugify@^1.6.5 failed to resolve
error: socket.io-client@^4.5.4 failed to resolve
error: striptags@^3.2.0 failed to resolve
error: [email protected] failed to resolve
error: styled-theme@^0.3.3 failed to resolve
error: [email protected] failed to resolve
error: tslib@^2.4.1 failed to resolve
error: universal-cookie@^4.0.4 failed to resolve
error: uuid@^8.3.2 failed to resolve
error: validator@^13.7.0 failed to resolve
error: video.js@^7.20.3 failed to resolve
error: xss@^1.0.14 failed to resolve
error: [email protected] failed to resolve

... obviously bun also should be able to handle a barrage of resolution failures without getting stuck.

alexlamsl avatar Mar 03 '23 00:03 alexlamsl

@alexlamsl the time looks promising 😃 Yes, you can't access with our registry because is protected behind a firewall.

We use Nexus as private npm registry

ild0tt0re avatar Mar 03 '23 06:03 ild0tt0re

How can I help you? Can I provide you some logs?

ild0tt0re avatar Mar 03 '23 07:03 ild0tt0re

Would you like to try BUN_CONFIG_MAX_HTTP_REQUESTS=1 like I did above and see if the problems you've encountered persist?

It would help to rule out any network-load related issues.

alexlamsl avatar Mar 03 '23 11:03 alexlamsl

Would you like to try BUN_CONFIG_MAX_HTTP_REQUESTS=1 like I did above and see if the problems you've encountered persist?

It would help to rule out any network-load related issues.

Command:

$ BUN_CONFIG_MAX_HTTP_REQUESTS=1 BUN_DEBUG_QUIET_LOGS=1 bun install --verbose

Output:

error: No version matching "3.0.0" found for specifier "@types/history" (but package exists)
error: Integrity check failed<r> for tarball: @types/node
error: Integrity check failed<r> for tarball: eval

and no packages have been installed.

ild0tt0re avatar Mar 03 '23 19:03 ild0tt0re

The package with that specific version indeed does not exist: https://www.npmjs.com/package/@types/history/v/3.0.0

not found

package '@types/history' with version 3.0.0 not found

Can you try, using the same custom registry and package.json, run npm install, then afterwards (assuming it ran successfully) show us the output of npm ls -a?

alexlamsl avatar Mar 03 '23 19:03 alexlamsl

For comparison this is the output from bun pm ls --all after a successful bun install using default NPM registry (without @mycompany/wasabi, of course).

One can see that @types/history being installed here is of version 4.7.11 rather than 3.0.0 − as it is not directly declared in your package.json, it may mean an older but in-range dependency is served by the custom registry.

alexlamsl avatar Mar 03 '23 19:03 alexlamsl

Command completed successfully:

npm install --legacy-peer-deps 

But with npm ls -a I have some Errors:

ild0tt0re avatar Mar 04 '23 08:03 ild0tt0re

The "Console Output" you've attached has been truncated − try npm ls -a >npm-ls.log 2>&1 and upload npm-ls.log?

(Clearly npm has issues of its own as well, but let's focus on one problem at a time...)

alexlamsl avatar Mar 04 '23 11:03 alexlamsl

Here the full log: npm-ls.log

ild0tt0re avatar Mar 04 '23 12:03 ild0tt0re

After some releases (now bun v0.16.4) I retried the command and I got this unexpected error

error: Unexpected

----- bun meta -----
Bun v0.6.14 (b5665739) macOS Silicon 22.5.0
InstallCommand: dotenv bunfig extracted_packages 
HTTP: 58
Elapsed: 133626ms | User: 8684ms | Sys: 18148ms
RSS: 0.60GB | Peak: 0.62GB | Commit: 1.17GB | Faults: 56
----- bun meta -----

0   0x1047aa964 WTFGetBacktrace

ild0tt0re avatar Jul 17 '23 13:07 ild0tt0re

bun install has gone through a lot of changes since this issue was created. If you still run into a specific bug, please open another issue.

Electroid avatar Oct 24 '23 23:10 Electroid

Having this problem using the latest version.

Edit: Having it with pnpm too so it's probably an issue with the npm registry.

keisanng avatar Jun 20 '24 18:06 keisanng