Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Error when installing Godot code support #19836

Closed
1 task done
Mister-Muffin opened this issue Aug 25, 2019 · 8 comments
Closed
1 task done

Error when installing Godot code support #19836

Mister-Muffin opened this issue Aug 25, 2019 · 8 comments
Labels

Comments

@Mister-Muffin
Copy link

Mister-Muffin commented Aug 25, 2019

Prerequisites

Description

I can not install the package lang-gdscript.

Error message:

> tree-sitter-gdscript@0.2.3 install /tmp/apm-install-dir-119725-15300-wyjp48.qkzu/node_modules/lang-gdscript/node_modules/tree-sitter-gdscript
> prebuild-install || node-gyp rebuild


prebuild-install WARN install No prebuilt binaries found (target=3.1.10 runtime=electron arch=x64 libc= platform=linux)
Aborted (core dumped)
Aborted (core dumped)
gyp: Call to 'node -e "require('nan')"' returned exit status 134 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/share/atom/resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp ERR! System Linux 5.0.0-25-generic
gyp ERR! command "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /tmp/apm-install-dir-119725-15300-wyjp48.qkzu/node_modules/lang-gdscript/node_modules/tree-sitter-gdscript
gyp ERR! node -v v10.2.1
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok 
Aborted (core dumped)
npm WARN enoent ENOENT: no such file or directory, open '/tmp/apm-install-dir-119725-15300-wyjp48.qkzu/package.json'
npm WARN apm-install-dir-119725-15300-wyjp48.qkzu No description
npm WARN apm-install-dir-119725-15300-wyjp48.qkzu No repository field.
npm WARN apm-install-dir-119725-15300-wyjp48.qkzu No README data
npm WARN apm-install-dir-119725-15300-wyjp48.qkzu No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 134
npm ERR! tree-sitter-gdscript@0.2.3 install: `prebuild-install || node-gyp rebuild`
npm ERR! Exit status 134
npm ERR! 
npm ERR! Failed at the tree-sitter-gdscript@0.2.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/<user>/.atom/.apm/_logs/2019-08-25T16_39_35_655Z-debug.log

Steps to Reproduce:

  • Clicked install in lang-gdscript extension.

Expected behavior:
Sucessful install.

Actual behavior:
Error (not installing).

@rsese
Copy link
Contributor

rsese commented Aug 26, 2019

Thanks for the report - I think this could be related to #19780.

Looks like the Versions information wasn't filled out, what version of Atom are you running (atom -v)? And what operating system?

@Mister-Muffin
Copy link
Author

Okay, thank you dir your Response! Of course I'll catch up later!

@Aerijo
Copy link
Contributor

Aerijo commented Aug 26, 2019

I think this could be related to #19780

I don't think so; the flags are all correct. The best solution is for the tree-sitter-gdscript package to upload prebuilt binaries though.

For the error,

gyp: Call to 'node -e "require('nan')"' returned exit status 134 while in binding.gyp. while trying to load binding.gyp

I experienced this personally at one point. Eventually I discovered I had NodeJS installed through apt somehow. Deleting it and using nvm installed NodeJS fixed the issue. I still don't know why it was an issue though.

@rsese
Copy link
Contributor

rsese commented Aug 26, 2019

I don't think so; the flags are all correct. The best solution is for the tree-sitter-gdscript package to upload prebuilt binaries though.

Thanks for the 👀 @Aerijo 👍

I experienced this personally at one point. Eventually I discovered I had NodeJS installed through apt somehow. Deleting it and using nvm installed NodeJS fixed the issue. I still don't know why it was an issue though.

Do you remember how you installed node on your system @MarkusMCPEGamer?

@Mister-Muffin
Copy link
Author

Do you remember how you installed node on your system @MarkusMCPEGamer?

Yes, though apt.

Deleting it and using nvm installed..

When i run nvm in the terminal, nothing is found.

@rsese
Copy link
Contributor

rsese commented Aug 28, 2019

I think you'll need to install nvm then:

https://github.com/nvm-sh/nvm#install--update-script

Then you can install Node using nvm:

https://github.com/nvm-sh/nvm#usage

@Mister-Muffin
Copy link
Author

Ok, thank you 👍! I'll try that.

@stale
Copy link

stale bot commented Aug 29, 2020

Thanks for your contribution!

This issue has been automatically marked as stale because it has not had recent activity. Because the Atom team treats their issues as their backlog, stale issues are closed. If you would like this issue to remain open:

  1. Verify that you can still reproduce the issue in the latest version of Atom
  2. Comment that the issue is still reproducible and include:
    • What version of Atom you reproduced the issue on
    • What OS and version you reproduced the issue on
    • What steps you followed to reproduce the issue

Issues that are labeled as triaged will not be automatically marked as stale.

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

No branches or pull requests

3 participants