question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Errors while installing on node v9.7.0

See original GitHub issue
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  Building assembly file ..\..\..\deps\libffi\src\x86\win64.asm
   Assembling: ..\..\..\deps\libffi\src\x86\win64.asm
  prep_cif.c
  types.c
  raw_api.c
  java_raw_api.c
  closures.c
  ffi.c
  win_delay_load_hook.cc
  ffi.vcxproj -> C:\Users\Martynas\Documents\Projects\aura-sdk-js\node_modules\ffi\build\Release\\libffi.lib
  ffi.cc
  callback_info.cc
  threaded_callback_invokation.cc
  win32-dlfcn.cc
  win_delay_load_hook.cc
c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\ffi.cc(111): error C2664: 'v8::Maybe<bool> v8::Ob
ject::ForceSet(v8::Local<v8::Context>,v8::Local<v8::Value>,v8::Local<v8::Value>,v8::PropertyAttribute)': cannot convert
 argument 3 from 'v8::PropertyAttribute' to 'v8::Local<v8::Value>' [C:\Users\Martynas\Documents\Projects\aura-sdk-js\no
de_modules\ffi\build\ffi_bindings.vcxproj]
  c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\ffi.cc(111): note: No user-defined-conversion o
  perator available that can perform this conversion, or the operator cannot be called
c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\ffi.cc(114): error C2664: 'v8::Maybe<bool> v8::Ob
ject::ForceSet(v8::Local<v8::Context>,v8::Local<v8::Value>,v8::Local<v8::Value>,v8::PropertyAttribute)': cannot convert
 argument 3 from 'v8::PropertyAttribute' to 'v8::Local<v8::Value>' [C:\Users\Martynas\Documents\Projects\aura-sdk-js\no
de_modules\ffi\build\ffi_bindings.vcxproj]
  c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\ffi.cc(114): note: No user-defined-conversion o
  perator available that can perform this conversion, or the operator cannot be called
c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\ffi.cc(123): error C2664: 'v8::Maybe<bool> v8::Ob
ject::ForceSet(v8::Local<v8::Context>,v8::Local<v8::Value>,v8::Local<v8::Value>,v8::PropertyAttribute)': cannot convert
 argument 3 from 'v8::PropertyAttribute' to 'v8::Local<v8::Value>' [C:\Users\Martynas\Documents\Projects\aura-sdk-js\no
de_modules\ffi\build\ffi_bindings.vcxproj]
  c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\ffi.cc(123): note: No user-defined-conversion o
  perator available that can perform this conversion, or the operator cannot be called
c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\ffi.cc(124): error C2664: 'v8::Maybe<bool> v8::Ob
ject::ForceSet(v8::Local<v8::Context>,v8::Local<v8::Value>,v8::Local<v8::Value>,v8::PropertyAttribute)': cannot convert
 argument 3 from 'v8::PropertyAttribute' to 'v8::Local<v8::Value>' [C:\Users\Martynas\Documents\Projects\aura-sdk-js\no
de_modules\ffi\build\ffi_bindings.vcxproj]
  c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\ffi.cc(124): note: No user-defined-conversion o
  perator available that can perform this conversion, or the operator cannot be called
c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\ffi.cc(125): error C2664: 'v8::Maybe<bool> v8::Ob
ject::ForceSet(v8::Local<v8::Context>,v8::Local<v8::Value>,v8::Local<v8::Value>,v8::PropertyAttribute)': cannot convert
 argument 3 from 'v8::PropertyAttribute' to 'v8::Local<v8::Value>' [C:\Users\Martynas\Documents\Projects\aura-sdk-js\no
de_modules\ffi\build\ffi_bindings.vcxproj]
  c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\ffi.cc(125): note: No user-defined-conversion o
  perator available that can perform this conversion, or the operator cannot be called
c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\ffi.cc(126): error C2664: 'v8::Maybe<bool> v8::Ob
ject::ForceSet(v8::Local<v8::Context>,v8::Local<v8::Value>,v8::Local<v8::Value>,v8::PropertyAttribute)': cannot convert
 argument 3 from 'v8::PropertyAttribute' to 'v8::Local<v8::Value>' [C:\Users\Martynas\Documents\Projects\aura-sdk-js\no
de_modules\ffi\build\ffi_bindings.vcxproj]
  c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\ffi.cc(126): note: No user-defined-conversion o
  perator available that can perform this conversion, or the operator cannot be called
c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\ffi.cc(132): error C2664: 'v8::Maybe<bool> v8::Ob
ject::ForceSet(v8::Local<v8::Context>,v8::Local<v8::Value>,v8::Local<v8::Value>,v8::PropertyAttribute)': cannot convert
 argument 3 from 'v8::PropertyAttribute' to 'v8::Local<v8::Value>' [C:\Users\Martynas\Documents\Projects\aura-sdk-js\no
de_modules\ffi\build\ffi_bindings.vcxproj]
  c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\ffi.cc(132): note: No user-defined-conversion o
  perator available that can perform this conversion, or the operator cannot be called
c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\ffi.cc(58): warning C4996: 'Nan::ForceSet': was d
eclared deprecated [C:\Users\Martynas\Documents\Projects\aura-sdk-js\node_modules\ffi\build\ffi_bindings.vcxproj]
  c:\users\martynas\documents\projects\aura-sdk-js\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of '
  Nan::ForceSet'
c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\ffi.cc(59): warning C4996: 'Nan::ForceSet': was d
eclared deprecated [C:\Users\Martynas\Documents\Projects\aura-sdk-js\node_modules\ffi\build\ffi_bindings.vcxproj]
  c:\users\martynas\documents\projects\aura-sdk-js\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of '
  Nan::ForceSet'
c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\ffi.cc(60): warning C4996: 'Nan::ForceSet': was d
eclared deprecated [C:\Users\Martynas\Documents\Projects\aura-sdk-js\node_modules\ffi\build\ffi_bindings.vcxproj]
  c:\users\martynas\documents\projects\aura-sdk-js\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of '
  Nan::ForceSet'
c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\ffi.cc(63): warning C4996: 'Nan::ForceSet': was d
eclared deprecated [C:\Users\Martynas\Documents\Projects\aura-sdk-js\node_modules\ffi\build\ffi_bindings.vcxproj]
  c:\users\martynas\documents\projects\aura-sdk-js\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of '
  Nan::ForceSet'c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\callback_info.cc(63): warning C49
  96: 'Nan::Callback::Call': was declared deprecated

  c:\users\martynas\documents\projects\aura-sdk-js\node_modules\nan\nan.h(1618): note: see declaration of 'Nan::Callbac
  k::Call'c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\ffi.cc(64): warning C4996: 'Nan::ForceS
  et': was declared deprecated

  c:\users\martynas\documents\projects\aura-sdk-js\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of '
  Nan::ForceSet'
c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\callback_info.cc(73): warning C4996: 'Nan::Callba
ck::Call': was declared deprecated [C:\Users\Martynas\Documents\Projects\aura-sdk-js\node_modules\ffi\build\ffi_binding
s.vcxproj]
c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\ffi.cc(65): warning C4996: 'Nan::ForceSet': was d
eclared deprecatedc:\users\martynas\documents\projects\aura-sdk-js\node_modules\nan\nan.h(1618): note: see declaration
of 'Nan::Callback::Call' [C:\Users\Martynas\Documents\Projects\aura-sdk-js\node_modules\ffi\build\ffi_bindings.vcxproj]

  c:\users\martynas\documents\projects\aura-sdk-js\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of '
  Nan::ForceSet'
c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\callback_info.cc(78): warning C4996: 'Nan::Callba
ck::Call': was declared deprecated [C:\Users\Martynas\Documents\Projects\aura-sdk-js\node_modules\ffi\build\ffi_binding
s.vcxproj]
c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\ffi.cc(78): warning C4996: 'Nan::ForceSet': was d
eclared deprecated [C:\Users\Martynas\Documents\Projects\aura-sdk-js\node_modules\ffi\build\ffi_bindings.vcxproj]
  c:\users\martynas\documents\projects\aura-sdk-js\node_modules\nan\nan.h(1618): note: see declaration of 'Nan::Callbac
  k::Call'
  c:\users\martynas\documents\projects\aura-sdk-js\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of '
  Nan::ForceSet'
c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\ffi.cc(88): warning C4996: 'Nan::ForceSet': was d
eclared deprecated [C:\Users\Martynas\Documents\Projects\aura-sdk-js\node_modules\ffi\build\ffi_bindings.vcxproj]
  c:\users\martynas\documents\projects\aura-sdk-js\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of '
  Nan::ForceSet'
c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\ffi.cc(91): warning C4996: 'Nan::ForceSet': was d
eclared deprecated [C:\Users\Martynas\Documents\Projects\aura-sdk-js\node_modules\ffi\build\ffi_bindings.vcxproj]
  c:\users\martynas\documents\projects\aura-sdk-js\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of '
  Nan::ForceSet'
c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\ffi.cc(94): warning C4996: 'Nan::ForceSet': was d
eclared deprecated [C:\Users\Martynas\Documents\Projects\aura-sdk-js\node_modules\ffi\build\ffi_bindings.vcxproj]
  c:\users\martynas\documents\projects\aura-sdk-js\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of '
  Nan::ForceSet'
c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\ffi.cc(97): warning C4996: 'Nan::ForceSet': was d
eclared deprecated [C:\Users\Martynas\Documents\Projects\aura-sdk-js\node_modules\ffi\build\ffi_bindings.vcxproj]
  c:\users\martynas\documents\projects\aura-sdk-js\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of '
  Nan::ForceSet'
c:\users\martynas\documents\projects\aura-sdk-js\node_modules\ffi\src\ffi.cc(367): warning C4996: 'Nan::Callback::Call'
: was declared deprecated [C:\Users\Martynas\Documents\Projects\aura-sdk-js\node_modules\ffi\build\ffi_bindings.vcxproj
]
  c:\users\martynas\documents\projects\aura-sdk-js\node_modules\nan\nan.h(1618): note: see declaration of 'Nan::Callbac
  k::Call'
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack     at ChildProcess.emit (events.js:127:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Windows_NT 10.0.16299
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\Martynas\Documents\Projects\aura-sdk-js\node_modules\ffi
gyp ERR! node -v v9.7.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Martynas\Documents\Projects\aura-sdk-js\package.json'
npm WARN aura-sdk-js No description
npm WARN aura-sdk-js No repository field.
npm WARN aura-sdk-js No README data
npm WARN aura-sdk-js No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ffi@2.2.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ffi@2.2.0 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\Martynas\AppData\Roaming\npm-cache\_logs\2018-03-29T16_04_50_396Z-debug.log

I’m getting this build error while installing. My node version is 9.7.0

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:12
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

16reactions
andreraczcommented, May 11, 2018

I’ve sucessfully compiled with Node 10.1.0 by using the source code from github. To do so, instead of npm install ffi Use npm install https://github.com/node-ffi/node-ffi.git

5reactions
oeNcommented, Jun 13, 2018

Installed from the repo on node v10.4.1 everything worked fine, can the new version be published?

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: couldn't open node-v9.7.0.pkg · Issue #19074
I am receiving the following error when I try to run the macOS installer for Node.js 9.7.0. The operation couldn't be completed. (com.apple....
Read more >
Error when installing necessary packages on Node js
go to edge (or the browser you choose for download) · go to download tab, where there is node-v14.17.5-x64.msi (for edge is CTRL+J...
Read more >
Node.js agent v9.7.0
Support statement: New Relic recommends that you upgrade the agent regularly to ensure that you're getting the latest features and performance ...
Read more >
NPM install error
Trying to install MDB pro 4.19.2 just downloaded and ran npm install but getting this error of sha512 not matching. Can someone tell...
Read more >
Npm install error(fails) - M220JS
npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found