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

Sometimes there is an error, while creating bin files in a hoisted node_modules #6756

Closed
zkochan opened this issue Jul 3, 2023 · 1 comment · Fixed by #7101
Closed

Sometimes there is an error, while creating bin files in a hoisted node_modules #6756

zkochan opened this issue Jul 3, 2023 · 1 comment · Fixed by #7101
Assignees

Comments

@zkochan
Copy link
Member

zkochan commented Jul 3, 2023

pnpm version:

8.6.5

Code to reproduce the issue:

Run bit install in the teambit/bit repository

Expected behavior:

Successful installation

Actual behavior:

ENOENT: no such file or directory, chmod '/Users/XXX/src/teambit/bit/node_modules/@graphql-modules/core/node_modules/uuid/dist/bin/uuid'

Additional information:

  • node -v prints: 18.16.1
  • Windows, macOS, or Linux?: macOS
@zkochan zkochan changed the title Sometimes there is an error, while creating bin files in hoisted node_modules Sometimes there is an error, while creating bin files in a hoisted node_modules Jul 3, 2023
@zkochan zkochan self-assigned this Sep 17, 2023
@aholland
Copy link

Just FYI for the devs, I am getting this error when trying to install after changing from versions 9.0.4 to 9.0.5: WARN  Failed to create bin at /Users/anthonyholland/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2/node_modules/.pnpm/node_modules/.bin/uuid. ENOENT: no such file or directory, open '/Users/anthonyholland/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2/node_modules/.pnpm/node_modules/uuid/dist/bin/uuid'

I haven't dug into it because it went away after I did a clean (script that clear all the monorepo's node_modules dirs etc), and then installed again. Not even certain it has to do with the upgrade to 9.0.5.

Context:

campaigns:build: Node.js v21.6.1
campaigns:build:  ELIFECYCLE  Command failed with exit code 1.
campaigns:build:  WARN   Local package.json exists, but node_modules missing, did you mean to install?
campaigns:build: command finished with error, but continuing...
@givealittle/common#svelte-kit:sync: command (/Users/anthonyholland/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2/packages/common) /opt/homebrew/bin/pnpm run svelte-kit:sync exited (1)
@givealittle/common#build: command (/Users/anthonyholland/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2/packages/common) /opt/homebrew/bin/pnpm run build exited (1)
@givealittle/ui#build: command (/Users/anthonyholland/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2/packages/ui) /opt/homebrew/bin/pnpm run build exited (1)
support#build: command (/Users/anthonyholland/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2/apps/support) /opt/homebrew/bin/pnpm run build exited (1)
developer#build: command (/Users/anthonyholland/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2/apps/developer) /opt/homebrew/bin/pnpm run build exited (1)
marketing#build: command (/Users/anthonyholland/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2/apps/marketing) /opt/homebrew/bin/pnpm run build exited (1)
campaigns#build: command (/Users/anthonyholland/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2/apps/campaigns) /opt/homebrew/bin/pnpm run build exited (1)

 Tasks:    7 successful, 14 total
Cached:    7 cached, 14 total
  Time:    1.485s 
Failed:    @givealittle/common#build, @givealittle/common#svelte-kit:sync, @givealittle/ui#build, campaigns#build, developer#build, marketing#build, support#build

 ERROR  run failed: command  exited (1)
 ELIFECYCLE  Command failed with exit code 1.
❰anthonyholland❙~/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2(git✱≠≠✱≠✱main)❱✘≻ p install
Scope: all 9 workspace projects
Lockfile is up to date, resolution step is skipped
Packages: +911
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 911, reused 910, downloaded 0, added 288, done
 WARN  Failed to create bin at /Users/anthonyholland/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2/node_modules/.pnpm/node_modules/.bin/uuid. ENOENT: no such file or directory, open '/Users/anthonyholland/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2/node_modules/.pnpm/node_modules/uuid/dist/bin/uuid'
 WARN  Failed to create bin at /Users/anthonyholland/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2/node_modules/.pnpm/aws-sdk@2.1583.0/node_modules/aws-sdk/node_modules/.bin/uuid. ENOENT: no such file or directory, open '/Users/anthonyholland/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2/node_modules/.pnpm/uuid@8.0.0/node_modules/uuid/dist/bin/uuid'
 WARN  Failed to create bin at /Users/anthonyholland/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2/node_modules/.pnpm/cls-rtracer@2.6.3/node_modules/cls-rtracer/node_modules/.bin/uuid. ENOENT: no such file or directory, open '/Users/anthonyholland/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/bin/uuid'
 WARN  Failed to create bin at /Users/anthonyholland/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2/node_modules/.pnpm/@smithy+middleware-retry@2.3.1/node_modules/@smithy/middleware-retry/node_modules/.bin/uuid. ENOENT: no such file or directory, open '/Users/anthonyholland/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2/node_modules/.pnpm/uuid@9.0.1/node_modules/uuid/dist/bin/uuid'
 WARN  Failed to create bin at /Users/anthonyholland/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2/node_modules/.pnpm/sucrase@3.35.0/node_modules/sucrase/node_modules/.bin/glob. ENOENT: no such file or directory, open '/Users/anthonyholland/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2/node_modules/.pnpm/glob@10.3.12/node_modules/glob/dist/esm/bin.mjs'
Done in 3.2s
❰anthonyholland❙~/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2(git✱≠≠✱≠✱main)❱✔≻ p install
Scope: all 9 workspace projects
Lockfile is up to date, resolution step is skipped
Already up to date
 WARN  Failed to create bin at /Users/anthonyholland/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2/node_modules/.pnpm/node_modules/.bin/uuid. ENOENT: no such file or directory, open '/Users/anthonyholland/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2/node_modules/.pnpm/node_modules/uuid/dist/bin/uuid'
Done in 922ms
❰anthonyholland❙~/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2(git✱≠≠✱≠✱main)❱✔≻ p install
Scope: all 9 workspace projects
Lockfile is up to date, resolution step is skipped
Already up to date
 WARN  Failed to create bin at /Users/anthonyholland/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2/node_modules/.pnpm/node_modules/.bin/uuid. ENOENT: no such file or directory, open '/Users/anthonyholland/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2/node_modules/.pnpm/node_modules/uuid/dist/bin/uuid'
Done in 996ms
❰anthonyholland❙~/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2(git✱≠≠✱≠✱main)❱✔≻ clean
❰anthonyholland❙~/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2(git✱≠≠✱≠✱main)❱✔≻ rm pnpm-lock.yaml 
❰anthonyholland❙~/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2(git✖✱≠≠✱≠✱main)❱✔≻ p install
Scope: all 9 workspace projects
 WARN  2 deprecated subdependencies found: querystring@0.2.0, querystring@0.2.1
Packages: +910
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 997, reused 902, downloaded 8, added 910, done
node_modules/.pnpm/svelte-preprocess@5.1.3_@babel+core@7.24.4_postcss-load-config@4.0.2_postcss@8.4.38__postcss@_yg34p4qrxls5itv2de47nygb5m/node_modules/svelte-preprocess: Running postinstall script, done in 17ms
node_modules/.pnpm/@sveltejs+kit@2.5.6_@sveltejs+vite-plugin-svelte@3.1.0_svelte@4.2.14_vite@5.2.10_@types+node@_tnnpwvki33nvb7ydev2ginvx3u/node_modules/@sveltejs/kit: Running postinstall script, done in 736ms

devDependencies:
+ @givealittle/eslint-config 0.0.0 <- packages/eslint-config
+ @sveltejs/adapter-auto 3.2.0
+ @sveltejs/adapter-node 5.0.1
+ @sveltejs/kit 2.5.6
+ @sveltejs/vite-plugin-svelte 3.1.0
+ autoprefixer 10.4.19
+ eslint 9.0.0
+ prettier 3.2.5
+ prettier-plugin-svelte 3.2.2
+ sass 1.75.0
+ svelte-preprocess 5.1.3 (5.1.4 is available)
+ turbo 1.13.2
+ vite 5.2.10

 WARN  Issues with peer dependencies found
apps/campaigns
├─┬ @typescript-eslint/eslint-plugin 7.7.0
│ ├── ✕ unmet peer eslint@^8.56.0: found 9.0.0
│ └─┬ @typescript-eslint/type-utils 7.7.0
│   ├── ✕ unmet peer eslint@^8.56.0: found 9.0.0
│   └─┬ @typescript-eslint/utils 7.7.0
│     └── ✕ unmet peer eslint@^8.56.0: found 9.0.0
└─┬ @typescript-eslint/parser 7.3.1
  └── ✕ unmet peer eslint@^8.56.0: found 9.0.0

packages/eslint-config
├─┬ @typescript-eslint/eslint-plugin 7.7.0
│ ├── ✕ unmet peer eslint@^8.56.0: found 9.0.0
│ └─┬ @typescript-eslint/type-utils 7.7.0
│   ├── ✕ unmet peer eslint@^8.56.0: found 9.0.0
│   └─┬ @typescript-eslint/utils 7.7.0
│     └── ✕ unmet peer eslint@^8.56.0: found 9.0.0
└─┬ @typescript-eslint/parser 7.7.0
  └── ✕ unmet peer eslint@^8.56.0: found 9.0.0

Done in 13.8s
❰anthonyholland❙~/IdeaProjects/CYB/dev/gal-web-sk-area/gal-web-v2(git✱≠≠✱≠✱main)❱✔≻ p install
Scope: all 9 workspace projects
Lockfile is up to date, resolution step is skipped
Already up to date
Done in 899ms

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

Successfully merging a pull request may close this issue.

2 participants