Skip to content

TypeError: Object 0.10.12 has no method 'slice' #278

@mohdmasd

Description

@mohdmasd

-- cannot run: node-gyp install
-- system: Windows 7 x64, node v0.10.12, node-gyp v0.10.2, python 2.7.4
-- node-gyp was fine with node v0.10.7. until I decided to reinstall node
-- edit: tried node-gyp with node v0.10.10. it works.

C:\Users\user>node-gyp install
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | x64
gyp http GET http://nodejs.org/dist/v0.10.12/node-v0.10.12.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! UNCAUGHT EXCEPTION
gyp ERR! stack TypeError: Object 0.10.12 has no method 'slice'
gyp ERR! stack     at remove (C:\Users\user\AppData\Roaming\npm\node_modules
\node-gyp\lib\remove.js:37:21)
gyp ERR! stack     at Object.self.commands.(anonymous function) [as remove] (C:\
Users\user\AppData\Roaming\npm\node_modules\node-gyp\lib\node-gyp.js:66:37)
gyp ERR! stack     at cb (C:\Users\user\AppData\Roaming\npm\node_modules\nod
e-gyp\lib\install.js:33:20)
gyp ERR! stack     at Request.<anonymous> (C:\Users\user\AppData\Roaming\npm
\node_modules\node-gyp\lib\install.js:207:9)
gyp ERR! stack     at Request.EventEmitter.emit (events.js:95:17)
gyp ERR! stack     at ClientRequest.self.clientErrorHandler (C:\Users\user\A
ppData\Roaming\npm\node_modules\node-gyp\node_modules\request\index.js:257:10)
gyp ERR! stack     at ClientRequest.EventEmitter.emit (events.js:95:17)
gyp ERR! stack     at Socket.socketErrorListener (http.js:1517:9)
gyp ERR! stack     at Socket.EventEmitter.emit (events.js:95:17)
gyp ERR! stack     at net.js:441:14
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Users\\user\\AppData\\Roaming\\npm\\node_module
s\\node-gyp\\bin\\node-gyp.js" "install"
gyp ERR! cwd C:\Users\user
gyp ERR! node -v v0.10.12
gyp ERR! node-gyp -v v0.10.2
gyp ERR! This is a bug in `node-gyp`.
gyp ERR! Please file an Issue:
gyp ERR!     <https://github.com/TooTallNate/node-gyp/issues>

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