-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Hangs when pnpm install at postinstall #27056
Comments
I tried pnpm override and 19.5.1 is fine:
Sorry I cannot upload image here. |
Hi, could you please run And could you also please share the output of this command with Nx NX_VERBOSE_LOGGING=true NX_PERF_LOGGING=true NX_CACHE_PROJECT_GRAPH=false NX_NATIVE_LOGGING=nx node node_modules/nx/bin/post-install.js |
Encountered the issue on my side too. I manually pinned to Important thing to note is that I only had the issue when installing dependencies in |
After I explicitly installed
And This is 19.5.2 output:
|
The problems is gone today, I removed the overrides setting, and the installation is all OK. I see nx version is still 19.5.2, but its postinstall is NOT invoked. |
Looks like the issue has been resolved so I'm going to close the issue. Thanks all! |
@FrozenPandaz I exec
❯ NX_VERBOSE_LOGGING=true NX_PERF_LOGGING=true NX_CACHE_PROJECT_GRAPH=false NX_NATIVE_LOGGING=nx node ./bin/post-install.js
TRACE nx::native::workspace::context: workspace_root="******/node_modules/.pnpm"
TRACE nx::native::workspace::context: Gathering files in ******/node_modules/.pnpm
TRACE nx::native::glob: converted globs globs=["**/node_modules", "**/.git", "**/.nx/cache", "**/.nx/workspace-data", "**/.yarn/cache"] result=["**/node_modules", "**/.git", "**/.nx/cache", "**/.nx/workspace-data", "**/.yarn/cache"]
|
Getting an identical issue as @imshenshen, using pnpm v9.5.0, nx v19.5.1 (and newer versions), and node v20.10.0 |
still occurs on 19.7.4. getting back to 19.4.4 works fine. |
Not resolved, issue occur since 19.5.0 $> NX_VERBOSE_LOGGING=true NX_PERF_LOGGING=true NX_CACHE_PROJECT_GRAPH=false NX_NATIVE_LOGGING=nx node node_modules/nx/bin/post-install.js
TRACE nx::native::workspace::context: workspace_root="[...]"
TRACE nx::native::workspace::context: Initially locking files
TRACE nx::native::workspace::context: Gathering files in [...]
TRACE nx::native::glob: converted globs globs=["**/node_modules", "**/.git", "**/.nx/cache", "**/.nx/workspace-data", "**/.yarn/cache"] result=["**/node_modules", "**/.git", "**/.nx/cache", "**/.nx/workspace-data", "**/.yarn/cache"]
TRACE nx::native::walker: walking directory="[...]"
TRACE nx::native::walker: walked in 1.636625ms
TRACE nx::native::workspace::files_hashing: Found 0 files
TRACE nx::native::workspace::files_hashing: hashing workspace files in parallel
TRACE nx::native::workspace::files_hashing: hashed workspace files in 83.083µs
TRACE nx::native::workspace::context: hashed and sorted files in 1.935208ms
TRACE nx::native::workspace::files_archive: could not write files archive: No such file or directory (os error 2)
TRACE nx::native::workspace::context: files retrieved files_len=0 |
I have the exact same issue on macos 14 and 15, node 20 |
The exact error on my side:
os: MacOS 15.0 and MacOS 14 Did try node 22, few pnpm versions, always the same result. |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
When initializing my repo by running
pnpm install
, everything was OK until it hangs at the below message:It never exited, no error, no warning.
I saw nx was updated 1 hour ago, and I am very sure, it worked yesterday.
FYI, I didn't install nx, it is depended by lerna.
Expected Behavior
The install process shall exit.
GitHub Repo
No response
Steps to Reproduce
Nx Report
The text was updated successfully, but these errors were encountered: