oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
73.28k stars 2.69k forks source link

Can not install dependencies, error: ENOENT installing react #9456

Closed amirrezaDev1378 closed 5 months ago

amirrezaDev1378 commented 6 months ago

What version of Bun is running?

1.0.30-canary.51+c64e52c67

What platform is your computer?

Microsoft Windows NT 10.0.22621.0 x64

What steps can reproduce the bug?

This is my package.json, you can try to install these dependencies in an empty project.

{
  "devDependencies": {
    "cross-env": "^7.0.2",
    "which": "4.0.0",
    "@babel/runtime": "^7.24.0",
    "copy-webpack-plugin": "6.4.1",
    "@babel/core": "^7.11.6",
    "@babel/plugin-proposal-class-properties": "^7.10.4",
    "@babel/plugin-proposal-decorators": "^7.10.5",
    "@babel/plugin-proposal-do-expressions": "^7.10.4",
    "@babel/plugin-proposal-export-default-from": "^7.10.4",
    "@babel/plugin-proposal-logical-assignment-operators": "^7.11.0",
    "@babel/plugin-proposal-optional-chaining": "^7.11.0",
    "@babel/plugin-transform-arrow-functions": "^7.10.4",
    "@babel/plugin-transform-async-to-generator": "^7.10.4",
    "@babel/plugin-transform-modules-commonjs": "^7.10.4",
    "@babel/plugin-transform-react-constant-elements": "^7.10.4",
    "@babel/plugin-transform-react-inline-elements": "^7.10.4",
    "@babel/plugin-transform-runtime": "^7.11.5",
    "@babel/preset-env": "^7.11.5",
    "@babel/preset-react": "^7.10.4",
    "@react-dev-inspector/babel-plugin": "^2.0.0",
    "@react-dev-inspector/middleware": "^2.0.0",
    "babel-eslint": "^10.1.0",
    "babel-loader": "^8.1.0",
    "babel-plugin-module-resolver": "^4.0.0",
    "babel-plugin-styled-components": "^1.11.1",
    "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
    "chalk": "^4.1.0",
    "css-loader": "^4.3.0",
    "file-loader": "^6.1.0",
    "friendly-errors-webpack-plugin": "^1.7.0",
    "html-loader": "^1.3.1",
    "html-minifier": "^4.0.0",
    "html-minifier-loader": "^1.4.1",
    "html-webpack-plugin": "^4.5.0",
    "husky": "^4.3.0",
    "i18n-webpack-plugin": "^1.0.0",
    "mini-css-extract-plugin": "^0.11.2",
    "miragejs": "^0.1.41",
    "path": "^0.12.7",
    "postcss-cli": "^7.1.2",
    "postcss-loader": "^3.0.0",
    "prettier": "^3.2.4",
    "react-dev-inspector": "^2.0.0",
    "react-hot-loader": "^4.13.0",
    "regenerator-runtime": "^0.13.7",
    "serve": "^12.0.0",
    "style-loader": "^1.2.1",
    "webpack": "^4.44.2",
    "webpack-bundle-analyzer": "^3.9.0",
    "webpack-cli": "^3.3.12",
    "webpack-dev-server": "^3.11.0",
    "webpack-hot-middleware": "^2.25.0",
    "webpack-merge": "^5.1.4",
    "webpackbar": "^5.0.0-3"
  },
  "dependencies": {
    "@cedarstudios/cedarmaps": "^1.0.2",
    "@cedarstudios/react-cedarmaps": "^1.0.3",
    "autoprefixer": "^9.8.6",
    "awesome-only-resolves-last-promise": "^1.0.3",
    "axios": "^0.20.0",
    "core-js": "^3.6.5",
    "global": "^4.4.0",
    "history": "^5.0.0",
    "i18next": "^19.7.0",
    "lazysizes": "^5.2.2",
    "mapbox-gl": "^1.12.0",
    "mapir-react-component": "^2.0.7",
    "react": "^18.2.0",
    "react-code-input": "^3.10.0",
    "react-countdown-circle-timer": "^2.3.7",
    "react-dom": "^16.13.1",
    "react-fastclick": "^3.0.2",
    "react-flickity-component": "^3.5.0",
    "react-helmet": "^6.1.0",
    "react-i18next": "^11.7.3",
    "react-joyride": "2.3.0",
    "react-mapbox-gl": "^4.8.6",
    "react-neshan-map-leaflet": "^1.2.1",
    "react-redux": "7.2.1",
    "react-router-dom": "^5.2.0",
    "react-scroll": "^1.8.1",
    "react-scroll-to": "^3.0.0-beta.6",
    "react-slick": "^0.29.0",
    "redux": "^4.0.5",
    "redux-thunk": "^2.3.0",
    "slick-carousel": "^1.8.1",
    "smoothscroll-for-websites": "^1.4.10",
    "styled-components": "^5.2.0",
    "styled-media-query": "^2.1.2",
    "styled-normalize": "^8.0.7",
    "underscore": "^1.11.0",
    "use-react-router": "^1.0.7",
    "wordifyfa": "^1.3.0"
  }
}

What is the expected behavior?

To install the packages.

What do you see instead?

bun install v1.0.30-canary.51 (c64e52c6) 🔍 globalthis [958/1199] error: ENOENT extracting tarball for smoothscroll-for-websites

8 packages installed [41.10s] Failed to install 18 packages error: ENOENT installing react error: ENOENT installing react-dom error: ENOENT installing gl-matrix error: ENOENT installing scheduler error: ENOENT installing @typescript-eslint/experimental-utils error: ENOENT installing @typescript-eslint/types error: ENOENT installing @typescript-eslint/typescript-estree error: ENOENT installing eslint-scope error: ENOENT installing color-convert error: ENOENT installing p-limit error: ENOENT installing yallist error: ENOENT installing @typescript-eslint/visitor-keys error: ENOENT installing semver error: ENOENT installing color-name error: ENOENT installing color-name error: ENOENT installing lru-cache error: ENOENT installing yallist error: ENOENT installing p-limit

Additional information

No response

Garruxx commented 5 months ago

Are you using bun i ?

amirrezaDev1378 commented 5 months ago

Hi @Garruxx. Yes, I was using bun i, but with the latest bun release, I'm not encountering any issues. Closing the issue...