Giter Site home page Giter Site logo

Comments (4)

bodil avatar bodil commented on September 26, 2024

Ugh, Python versions...

I'd almost go so far as to suggest an npm installation unable to invoke gyp is missing a fundamental dependency (python2) which you really should have installed if npm is to work reliably at all, but I'd be willing to accept a PR with a gaze version that builds for you. Uninstalling python2 isn't really something I'm able to do without breaking my own OS installation, so I'd have to rely on you to test if it builds or not.

Unless something new has appeared recently, gaze seems to be the only available watch package that works satisfactorily, so replacing it is probably not a good idea.

from pulp.

joneshf avatar joneshf commented on September 26, 2024

I have py2 installed, it's just not the default for arch linux.

from pulp.

bodil avatar bodil commented on September 26, 2024

Odd, I never had a problem with this when running Arch. It should just find the python2 command and work, iirc.

Anyway, I just ran into more or less the same problem on my Windows machine, and have a version built with gaze 0.5.1 that seems to work fine, and doesn't require gyp to build. I'll commit a fix once I'm sure I haven't broken anything.

from pulp.

peterjoel avatar peterjoel commented on September 26, 2024

I still get this error on Windows, while installing the latest version of pulp.

    $ npm install -g pulp
    \
    > [email protected] install C:\Users\Peter\AppData\Roaming\npm\node_modules\pulp\node_modules\webpack-dev-server\node_modules\socket.io\node_modules\engine.i
    o\node_modules\ws\node_modules\utf-8-validate
    > node-gyp rebuild


    C:\Users\Peter\AppData\Roaming\npm\node_modules\pulp\node_modules\webpack-dev-server\node_modules\socket.io\node_modules\engine.io\node_modules\ws\node_modules\
    utf-8-validate>if not defined npm_config_node_gyp (node "c:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js"
     rebuild )  else (node  rebuild )
    gyp ERR! configure error
    gyp ERR! stack Error: Python executable "true" is v, which is not supported by gyp.
    gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
    gyp ERR! stack     at failPythonVersion (c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:121:14)
    gyp ERR! stack     at c:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:110:9
    gyp ERR! stack     at ChildProcess.exithandler (child_process.js:194:7)
    gyp ERR! stack     at emitTwo (events.js:87:13)
    gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
    gyp ERR! stack     at maybeClose (internal/child_process.js:817:16)
    gyp ERR! stack     at Socket.<anonymous> (internal/child_process.js:319:11)
    gyp ERR! stack     at emitOne (events.js:77:13)
    gyp ERR! stack     at Socket.emit (events.js:169:7)
    gyp ERR! stack     at Pipe._onclose (net.js:469:12)
    gyp ERR! System Windows_NT 6.3.9600
    gyp ERR! command "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
    gyp ERR! cwd C:\Users\Peter\AppData\Roaming\npm\node_modules\pulp\node_modules\webpack-dev-server\node_modules\socket.io\node_modules\engine.io\node_modules\ws\
    node_modules\utf-8-validate
    gyp ERR! node -v v4.1.1
    gyp ERR! node-gyp -v v3.0.3
    gyp ERR! not ok

from pulp.

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.