Skip to content

Trouble installing the module #1

@popey456963

Description

@popey456963

Using Node V8 & NPM V5 seems to cause it to not find "minimatch" as a module.

C:\Users\Alexander\Documents\GitHub\current_active_window  (app-selector@1.0.0)
λ npm i winctl

> winctl@1.0.2 install C:\Users\Alexander\Documents\GitHub\current_active_window\node_modules\winctl
> node-gyp rebuild


C:\Users\Alexander\Documents\GitHub\current_active_window\node_modules\winctl>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! UNCAUGHT EXCEPTION
gyp ERR! stack Error: Cannot find module 'minimatch'
gyp ERR! stack     at Function.Module._resolveFilename (module.js:485:15)
gyp ERR! stack     at Function.Module._load (module.js:437:25)
gyp ERR! stack     at Module.require (module.js:513:17)
gyp ERR! stack     at require (internal/module.js:11:18)
gyp ERR! stack     at Object.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\install.js:23:17)
gyp ERR! stack     at Module._compile (module.js:569:30)
gyp ERR! stack     at Object.Module._extensions..js (module.js:580:10)
gyp ERR! stack     at Module.load (module.js:503:32)
gyp ERR! stack     at tryModuleLoad (module.js:466:12)
gyp ERR! stack     at Function.Module._load (module.js:458:3)
gyp ERR! System Windows_NT 10.0.15063
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\Alexander\Documents\GitHub\current_active_window\node_modules\winctl
gyp ERR! node -v v8.2.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! This is a bug in `node-gyp`.
gyp ERR! Try to update node-gyp and file an Issue if it does not help:
gyp ERR!     <https://github.com/nodejs/node-gyp/issues>
npm WARN app-selector@1.0.0 No description
npm WARN app-selector@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 7
npm ERR! winctl@1.0.2 install: `node-gyp rebuild`
npm ERR! Exit status 7
npm ERR!
npm ERR! Failed at the winctl@1.0.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Alexander\AppData\Roaming\npm-cache\_logs\2017-09-17T02_04_42_397Z-debug.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions