2017-02-10 142 views
1

我正在編寫electron應用程序,其中electron-windows-notifications取決於NodeRTNodeRT:找不到程序集

當我嘗試安裝我的項目,我獲得以下爲每個@nodert-win10依賴錯誤:

> if not defined npm_config_node_gyp (node "C:\Applications\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild --msvs_version=2015) else (node "" rebuild --msvs_version=2015) 
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. 
    _nodert_generated.cpp 
    NodeRtUtils.cpp 
    OpaqueWrapper.cpp 
    CollectionsConverterUtils.cpp 
..\_nodert_generated.cpp : fatal error C1107: could not find assembly 'Windows.winmd': please specify the assembly search path using /AI or by setting the LIBPATH environment variable [C:\Users\moro\projects\t w-en-ty\node_modules\@nodert-win10\windows.ui.startscreen\build\binding.vcxproj] 
..\NodeRtUtils.cpp : fatal error C1107: could not find assembly 'Windows.winmd': please specify the assembly search path using /AI or by setting the LIBPATH environment variable [C:\Users\moro\projects\tw-en-t y\node_modules\@nodert-win10\windows.ui.startscreen\build\binding.vcxproj] 
..\CollectionsConverterUtils.cpp : fatal error C1107: could not find assembly 'Windows.winmd': please specify the assembly search path using /AI or by setting the LIBPATH environment variable [C:\Users\moro\pr ojects\tw-en-ty\node_modules\@nodert-win10\windows.ui.startscreen\build\binding.vcxproj] 
    win_delay_load_hook.cc 
..\OpaqueWrapper.cpp : fatal error C1107: could not find assembly 'Windows.winmd': please specify the assembly search path using /AI or by setting the LIBPATH environment variable [C:\Users\moro\projects\tw-en -ty\node_modules\@nodert-win10\windows.ui.startscreen\build\binding.vcxproj] 
C:\Applications\nodejs\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.cc : fatal error C1107: could not find assembly 'Windows.winmd': please specify the assembly search path using /AI or by se tting the LIBPATH environment variable [C:\Users\moro\projects\tw-en-ty\node_modules\@nodert-win10\windows.ui.startscreen\build\binding.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:\Applications\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:276: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.14393 
gyp ERR! command "C:\\Applications\\nodejs\\node.exe" "C:\\Applications\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--msvs_version=2015" 
gyp ERR! cwd C:\Users\moro\projects\tw-en-ty\node_modules\@nodert-win10\windows.ui.startscreen 
gyp ERR! node -v v6.9.5 
gyp ERR! node-gyp -v v3.4.0 
gyp ERR! not ok 

請,你能幫幫我嗎?

這個問題也被問到這裏:https://github.com/NodeRT/NodeRT/issues/56

回答

1

在其他計算機上嘗試完整安裝過程後,我發現了導致此問題的問題。在安裝說明中聲明需要「VS 2015 Express for Windows Desktop」。但是,Visual Studio本身還不夠,安裝人員時也必須安裝Windows 10 SDK

回想起來,它似乎很明顯,但對於初學JS本地相關技術的人來說,在README中顯式聲明它可能很有用。 :)

0

對於處理此問題的其他人。我固定它通過複製Windows.winmd

C:\ Program Files文件(x86)的\的Windows套件\ 10 \ UnionMetadata \ 10.0.16299.0

C:\ Program Files(x86)\ Windows Kits \ 10 \ UnionMetadata

相關問題