Coder Social home page Coder Social logo

master: node 7.9 / yarn 0.23.2 build error node-gyp error: too few arguments to function call, expected at least 2, have 1 about crater HOT 7 CLOSED

jcoreio avatar jcoreio commented on June 20, 2024
master: node 7.9 / yarn 0.23.2 build error node-gyp error: too few arguments to function call, expected at least 2, have 1

from crater.

Comments (7)

jedwards1211 avatar jedwards1211 commented on June 20, 2024

I'm confused by the part where you did brew install --force node@6, what was that for?

The situation may have changed, but last time I checked fibers wasn't compatible with node 7 yet, which means meteor users are stuck with node 6 until fibers (and possibly other libs) support node 7.

from crater.

jedwards1211 avatar jedwards1211 commented on June 20, 2024

Yup, we're stuck with node 6 right now: laverdet/node-fibers#333 (comment)

from crater.

Falieson avatar Falieson commented on June 20, 2024

Additionally, if someone is using the latest yarn version 0.23.2 (I don't know which other versions are affected - some time later than version 19), yarn uses node 7 and as far as I can tell can't be downgraded from brew. yarnpkg/yarn#1882
I'm running into this issue after a fresh install of osx.

Other things I've tried...

~ ❯❯❯ brew install [email protected]
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
exiftool                   lcdf-typetools             unzip
kibana                     libtorrent-rasterbar

Error: No available formula with the name "[email protected]"
==> Searching for a previously deleted formula...
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
Error: No formulae found in taps.

from crater.

jedwards1211 avatar jedwards1211 commented on June 20, 2024

Can you still install an old version with npm i -g?

from crater.

Falieson avatar Falieson commented on June 20, 2024

So I used nvm after your suggestion and submitted a PR for using .nvmrc with the package.
Also I just figured out that yarn (v0.23.2) will use whatever version of node the environment is using and it isn't strictly associated with node7 (I thought that was weird!)

from crater.

jedwards1211 avatar jedwards1211 commented on June 20, 2024

Huh, why did you think it was weird? Generally package managers are designed to be relatively independent of language runtimes. Newer versions of node tend to be released with newer versions of npm, but you can actually install whatever version of npm you want, as far as I know...

from crater.

Falieson avatar Falieson commented on June 20, 2024

Marking that the resolution is added to the README.md, basically use nvm to manage multiple versions of node side-by-side; yarn uses whatever version of node the shell had loaded/linked

from crater.

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.