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.

ffi@2.2.0, Windows 10, node 7.10.1: node-gyp rebuild fails with MSB3686

See original GitHub issue

Here is npm i log:

npm i
npm WARN npm npm does not support Node.js v7.10.1
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11.
npm WARN npm You can find the latest version at https://nodejs.org/

> ffi@2.2.0 install C:\Users\vladislav.shtepin\Desktop\electron-dapp\node_modules\ffi
> node-gyp rebuild


C:\Users\vladislav.shtepin\Desktop\electron-dapp\node_modules\ffi>if not defined npm_config_node_gyp (node "C:\Users\vladislav.shtepin\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Users\vladislav.shtepin\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
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
C:\Users\vladislav.shtepin\Desktop\electron-dapp\node_modules\ffi\build\deps\libffi\ffi.targets(28,5): error MSB3686: U
nable to create Xaml task.  Compilation failed.  \r [C:\Users\vladislav.shtepin\Desktop\electron-dapp\node_modules\ffi\
build\deps\libffi\ffi.vcxproj]
C:\Users\vladislav.shtepin\Desktop\electron-dapp\node_modules\ffi\build\deps\libffi\ffi.targets(28,5): error MSB3686: S
ource file 'C:\Windows\TEMP\ordt2cwm.0.cs' could not be found\r [C:\Users\vladislav.shtepin\Desktop\electron-dapp\node_
modules\ffi\build\deps\libffi\ffi.vcxproj]
C:\Users\vladislav.shtepin\Desktop\electron-dapp\node_modules\ffi\build\deps\libffi\ffi.targets(28,5): error MSB3686:
[C:\Users\vladislav.shtepin\Desktop\electron-dapp\node_modules\ffi\build\deps\libffi\ffi.vcxproj]
C:\Users\vladislav.shtepin\Desktop\electron-dapp\node_modules\ffi\build\deps\libffi\ffi.targets(28,5): error MSB4036: T
he "assembler" task was not found. Check the following: 1.) The name of the task in the project file is the same as the
 name of the task class. 2.) The task class is "public" and implements the Microsoft.Build.Framework.ITask interface. 3
.) The task is correctly declared with <UsingTask> in the project file, or in the *.tasks files located in the "C:\Prog
ram Files (x86)\MSBuild\14.0\bin" directory. [C:\Users\vladislav.shtepin\Desktop\electron-dapp\node_modules\ffi\build\d
eps\libffi\ffi.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\vladislav.shtepin\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:262: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.16299
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\vladislav.shtepin\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\vladislav.shtepin\Desktop\electron-dapp\node_modules\ffi
gyp ERR! node -v v7.10.1
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
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\vladislav.shtepin\AppData\Roaming\npm-cache\_logs\2018-09-12T12_44_29_861Z-debug.log

Any help? Can’t find anything relevant in google.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
waitingsongcommented, Oct 18, 2018

try change deps

    "ffi": "^2.2.0"

to

    "ffi": "git+https://github.com/node-ffi/node-ffi.git"
0reactions
moialblacommented, Nov 7, 2018

@waitingsong´s solutions for windows 10 works fine, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why I got an error at "node-gyp rebuild" at Win10?
Problem was at combination of. Microsoft Visual Studio; Node.js; node-gyp. I bring it to work with. Microsoft Visual Studio 2022 (C++ ...
Read more >
Npm install command failing with message "could not find ...
When I run the npm install command, npm starts downloading the dependencies. But then, suddenly, it stops with the error:
Read more >
A Comprehensive Guide to Fixing Node-Gyp Issues on Windows
1. Try running npm install with the --no-optional flag. · 2. Try downloading the windows-build-tools package. · 3. Download the Visual Studio 2015 ......
Read more >
Problems with npm install after loading project files. - Treehouse
Here is my terminal output when executing npm install for this project. ... error gyp ERR! stack Error: `make` failed with exit code:...
Read more >
falling back to source compile with node-gyp - You.com
Since the bcrypt module uses node-gyp to build and install, you'll need a stable version of node to use bcrypt. If you do...
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