Skip to content

Error installing with npm on windows #3

@JMoura5

Description

@JMoura5

Hi, I'm having trouble installing node-svd via npm. I've already installed node-gyp and confirmed that it is working and the variables python and msbuild are available at my environment but am still getting this error:

C:\Users\Joao\Documents\Thesis\DamVis>npm install node-svd --save

> [email protected] install C:\Users\Joao\Documents\Thesis\DamVis\node_modules\node-svd
> node-gyp rebuild && cp build/Release/svd.node ./svd.node


C:\Users\Joao\Documents\Thesis\DamVis\node_modules\node-svd>if not defined npm_config_node_gyp (node "C:\Users\Joao\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  las2.c
  svdutil.c
  svdlib.c
..\svdlib.c(201): warning C4098: 'svdWriteDenseArray': função 'void' retornando um valor [C:\Users\Joao\Documents\Dropb
ox\Thesis\DamVis\node_modules\node-svd\build\svd.vcxproj]
..\svdutil.c(40): fatal error C1083: Não é possível abrir arquivo incluir: 'netinet/in.h': No such file or directory [C
:\Users\Joao\Documents\Thesis\DamVis\node_modules\node-svd\build\svd.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `msbuild` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\Joao\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:285:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Joao\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Joao\Documents\Thesis\DamVis\node_modules\node-svd
gyp ERR! node -v v6.9.1
gyp ERR! node-gyp -v v3.6.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild && cp build/Release/svd.node ./svd.node`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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\Joao\AppData\Roaming\npm-cache\_logs\2017-07-04T21_10_11_881Z-debug.log

If you go to https://npm.runkit.com/node-svd it also gives an error saying it couldn't find 'node-svd'. Any suggestion on how I might solve this?

Thanks.

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