Code Monkey home page Code Monkey logo

Comments (14)

Pigpog avatar Pigpog commented on September 22, 2024

Try updating node-gyp: (as superuser) npm install -g node-gyp@latest since your version is out of date by an entire major release.

from vlc-discord-rpc.

huantianad avatar huantianad commented on September 22, 2024

I'm using arch and node-gyp is installed via pacman, so using npm to update it would probably break the package unfortunately, so I'll probably hold off on that. I do have version 8.2.0, which is only 2 minor versions behind though.

from vlc-discord-rpc.

Pigpog avatar Pigpog commented on September 22, 2024

For whatever reason then, npm is grabbing some other installation of node-gyp on your system, judging by this:

npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! Node-gyp failed to build your package.
npm ERR! gyp ERR! Try to update npm and/or node-gyp and if it does not help file an issue with the package author.```

from vlc-discord-rpc.

huantianad avatar huantianad commented on September 22, 2024

Seems like it's trying to use the node-gyp bundled with my npm installation instead of my global one, so seems to be something on my end.

from vlc-discord-rpc.

Pigpog avatar Pigpog commented on September 22, 2024

if you have node-gyp bundled with npm already, npm install -g node-gyp@latest would update it and not affect the pacman package any more than it already does, no? worth a try.
Or maybe just remove the npm-bundled version and hope that it defaults to the pacman version.

from vlc-discord-rpc.

lilandrias avatar lilandrias commented on September 22, 2024

same problem here

from vlc-discord-rpc.

lilandrias avatar lilandrias commented on September 22, 2024

i use arch linux btw

from vlc-discord-rpc.

Pigpog avatar Pigpog commented on September 22, 2024

i too use arch btw but mine's better than yours because i also use dwm

from vlc-discord-rpc.

huantianad avatar huantianad commented on September 22, 2024

if you have node-gyp bundled with npm already, npm install -g node-gyp@latest would update it and not affect the pacman package any more than it already does, no? worth a try.

Or maybe just remove the npm-bundled version and hope that it defaults to the pacman version.

The problem is that the pacman node-gyp and npm -g node-gyp are installed in /usr/lib/node_modules/node-gyp/, while when installing it's using /usr/lib/node_modules/npm/node_modules/node-gyp/

from vlc-discord-rpc.

Pigpog avatar Pigpog commented on September 22, 2024

The problem is that the pacman node-gyp and npm -g node-gyp are installed in /usr/lib/node_modules/node-gyp/, while when installing it's using /usr/lib/node_modules/npm/node_modules/node-gyp/

I think you might wanna reinstall npm, and make sure you only have one installation of it at a time. Haven't been able to reproduce the issue on my end.

from vlc-discord-rpc.

huantianad avatar huantianad commented on September 22, 2024

It seems like /usr/lib/node_modules/npm/node_modules/node-gyp/ should not have been there, wasn't part of my node or npm installation, removed it and it seems to work. Thanks for the help!

from vlc-discord-rpc.

Pigpog avatar Pigpog commented on September 22, 2024

Oh, interesting, i wonder how that got there then. Glad you could get it working!

from vlc-discord-rpc.

huantianad avatar huantianad commented on September 22, 2024

Yeah it's super weird, no idea how it got there, maybe from like a previous version of the package? that should've been removed if so though.

from vlc-discord-rpc.

Pigpog avatar Pigpog commented on September 22, 2024

I just checked on my system (Up-to-date Arch install that i've had for a few years), and I too have /usr/lib/node_modules/npm/node_modules/node-gyp. In theory that folder should be owned by the pacman package npm which I have installed, but it isn't.
Could be a remnant from an old version, or updating npm using itself requires it as a build dependency? Oh well, can't be very important lol.

from vlc-discord-rpc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.