Skip to content

node-gyp rebuild: Error: spawn ENOENT  #559

@egroj55

Description

@egroj55

Hi, have tried to install my custom Yeoman generator on Windows 8,
Usally I use Fedora or other unix based systems, but had do use Windows for this project.

Now when I try to run npm link from my generator directory I get this error:

c:\Apache24\htdocs\generator\node_modules\exec-sync\node_modules\ffi\node_module
s\ref>node "c:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\nod
e_modules\node-gyp\bin\node-gyp.js" rebuild
gyp ERR! configure error
gyp ERR! stack Error: spawn ENOENT
gyp ERR! stack     at errnoException (child_process.js:1011:11)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:802:34)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "c:\\Program Files\\nodejs\\node_modules\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd c:\Apache24\htdocs\generator\node_modules\exec-sync\node_modules\ff
i\node_modules\ref
gyp ERR! node -v v0.10.35
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm ERR! Windows_NT 6.2.9200
npm ERR! argv "c:\\Program Files\\nodejs\\node.exe" "c:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "link"
npm ERR! node v0.10.35
npm ERR! npm  v2.1.17
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the ref package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls ref
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     c:\Apache24\htdocs\generator\npm-debug.log

I have tried doing this in the command promts (Windows original,node,ruby and as a Administrator) and Git bash but keep getting this same error.

Doing npm install node-gyp works fine, this error persist when I'm trying to do npm link. I also have a npm-debug.log that I can attach if its helpful.

My user has Full controll for the directory and Sub-directoies in C:\Program Files\nodejs
I had Python 2.7.8 but changed to 2.7.3 as recommended in the installation description (Python is in my Path).
Also have Microsoft Visual Studio C++ 2012/13 for Windows Desktop Express.

What am I doing wrong here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions