-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Error: Cannot find module /node_modules/gatsby-cli/scripts/postinstall.js #22651
Comments
It's weird. I succeed to install it globally (as user).
Would you try to install |
This issue hasn't seen any updates or "me toos". I'm inclined to close it without a reproduction or more reports. @doverradio please let us know. |
Same error. |
Hi! Since we didn't receive an answer for 7 business days or more about the ask of a reproduction I'm going to close this now, as we can't do much to help without a reproduction. If you are able to create a minimal reproduction for this then please do answer here or reopen the issue. Thanks! |
I am also facing this exact same issue. Here's the details:
Ubuntu 18.04.5 LTS on Windows 10 x86_64 |
I'm unable to reproduce this on fresh Ubuntu, @shivayan-bora-by for debugging I published a test release, would you mind trying to |
Hi, I tried running the command and it didn't work. I am getting the following output.
|
I am wondering if the issue might be because of this:
|
The new log ending with |
So
I have attached the debug logs as well. Do you think the issue might be with
|
I think the telemetry related stack trace is logged and ignored and the install moves forward. But then it fails here I cleaned up my debug build, would you mind testing again with this: |
It worked! Didn't get any errors now:
|
Perfect, thanks for helping out! And here is PR #28067 with the changes |
As others have described, I am getting an error when attempting to install the gatsby-cli. Is there a solution to this? Environment is Ubuntu 16.04, Nodejs is 12.16.1.
The error:
Steps to reproduce
All I did was follow the tutorial here and ran this (but as root, not user)
npm install -g gatsby-cli
Expected result
Need to install gatsby-cli properly.
Actual result
Errors
Environment
System:
OS: Linux 4.4 Ubuntu 16.04.6 LTS (Xenial Xerus)
CPU: (1) x64 Intel(R) Xeon(R) Gold 6140 CPU @ 2.30GHz
Shell: 4.3.48 - /bin/bash
Binaries:
Node: 12.16.1 - ~/.nvm/versions/node/v12.16.1/bin/node
npm: 6.13.4 - ~/.nvm/versions/node/v12.16.1/bin/npm
Languages:
Python: 2.7.12 - /usr/bin/python
Browsers:
Firefox: 74.0
npmGlobalPackages:
gatsby-cli: 2.7.2
The text was updated successfully, but these errors were encountered: