-
Notifications
You must be signed in to change notification settings - Fork 5.9k
“npm ERR!” during code-server npm install #1906
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
Comments
npm WARN deprecated [email protected]: TSLint has been deprecated in favor of ESLint. Please see palantir/tslint#4534 for more information. |
How do I solve the error? |
@Adebesin-Cell please open a separate issue for that. |
Any updates @GalacticLion7 |
Having the same issue on Alpine Linux |
@nhooyr here's a new link: https://transfer.sh/U1MPP/2020-10-09T12_38_39_831Z-debug.log Sorry for the late response. |
I've seen this before but I'm not sure what causes it (I think it might
be related to being root). Does it happen if you try again? What if you
use yarn instead of npm?
|
@code-asher having the same issue, using yarn v1.22.5. I'm using the following command
My alpine container finishes building, but when I start the application, obviously it crashes due to the missing dependency. I tried installing the peer dependency manually, but the current version is 9.0.0 and yarn crashes when I try to install 4.5.2. |
The `google-cloud/logging` library is an optional dependency our logger
supports but we don't use it in code-server so it won't be the cause of
this issue unfortunately.
So the installation is completing for you, but when you launch
code-server it crashes, right? Could you post code-server's logs so we
can see what it says during the crash?
*Edit*: it might make sense to open a new issue since this one is about npm trying to move around files that for some reason no longer exist during installation.
|
@code-asher I think I didn't read properly. In my case it was just missing some libraries I guess, as explained in the npm install docs. Here what worked for me on Alpine 3.12:
|
Awesome, glad you got it working! I think we plan to add some code that
will check to make sure system dependencies are installed.
|
Opened #2474! |
I actually switched back to centos... since alpine doesn't seem to be the best choice when it comes to using it as a code-server base image. Just so many things that are just a bit more work compared to other distros, mainly due to musl vs. glibc. For example, getting Tensorflow to work is just not as easy. |
I tried this process but it got stuck on |
I have same problem building code-server 3.10.2 I try to update nixpks and getting same error related to @google-cloud/logging@^4.5.2
|
The @google-cloud/logging warning can be ignored. It's an optional
dependency of our logger that we don't use.
We may need to see the full logs to figure out what went wrong. Please
feel free to open a new issue with the logs!
|
/root/.npm/_logs/2020-07-23T02_52_12_426Z-debug.log
The text was updated successfully, but these errors were encountered: