I want to install the npm module
https://www.npmjs.com/package/node-prolog-swi
https://github.com/kloni/node-prolog-swi
but I get this:
C:\Users\me\Desktop\Apps\web>npm install swipl
> swipl@1.0.3 install C:\Users\me\Desktop\Apps\web\node_modules\swipl
> node-gyp rebuild
C:\Users\me\Desktop\Apps\web\node_modules\swipl>if not defined npm_config_node_gyp (node "C:\Users\me\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.
win_delay_load_hook.cc
libswipl.cc
..\src\libswipl.cc(4): fatal error C1083: Cannot open include file: 'SWI-Prolog.h': No such file or directory [C:\Users
\me\Desktop\Apps\web\node_modules\swipl\build\swipl.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\me\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:194: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\\me\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\me\Desktop\Apps\web\node_modules\swipl
gyp ERR! node -v v7.10.0
gyp ERR! node-gyp -v v3.6.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\me\Desktop\Apps\web\package.json'
npm WARN web No description
npm WARN web No repository field.
npm WARN web No README data
npm WARN web No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! swipl@1.0.3 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the swipl@1.0.3 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\me\AppData\Roaming\npm-cache\_logs\2017-05-28T15_47_30_025Z-debug.log
Does anyone know how I can fix this?
Thanks
via omega
No comments:
Post a Comment