lovell / sharp

High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, AVIF and TIFF images. Uses the libvips library.
https://sharp.pixelplumbing.com
Apache License 2.0
29.33k stars 1.3k forks source link

zeit/hyper: Error: The specified module could not be found. #710

Closed novascreen closed 7 years ago

novascreen commented 7 years ago

I'm on Windows 10 Pro (x64), build seems to work, but require fails.

npm i sharp

> sharp@0.17.2 install D:\Code\novascreen\aspnetcore-spa\node_modules\sharp
> node-gyp rebuild

D:\Code\novascreen\aspnetcore-spa\node_modules\sharp>if not defined npm_config_node_gyp (node "C:\Users\novas\AppData\Roaming\nvm\v7.3.0\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.
  VError.cpp
  VInterpolate.cpp
  VImage.cpp
  win_delay_load_hook.cc
     Creating library D:\Code\novascreen\aspnetcore-spa\node_modules\sharp\build\Release\libvips-cpp.lib and object D:\Code\novascreen\aspnetcore-spa\node_modules\sharp\build\Release\libvips-cpp.exp
  Generating code
  Finished generating code
  libvips-cpp.vcxproj -> D:\Code\novascreen\aspnetcore-spa\node_modules\sharp\build\Release\\libvips-cpp.dll
  libvips-cpp.vcxproj -> D:\Code\novascreen\aspnetcore-spa\node_modules\sharp\build\Release\libvips-cpp.pdb (Full PDB)
  common.cc
  metadata.cc
  operations.cc
  pipeline.cc
  sharp.cc
  utilities.cc
  win_delay_load_hook.cc
     Creating library D:\Code\novascreen\aspnetcore-spa\node_modules\sharp\build\Release\sharp.lib and object D:\Code\novascreen\aspnetcore-spa\node_modules\sharp\build\Release\sharp.exp
  Generating code
  Finished generating code
  sharp.vcxproj -> D:\Code\novascreen\aspnetcore-spa\node_modules\sharp\build\Release\\sharp.node
  sharp.vcxproj -> D:\Code\novascreen\aspnetcore-spa\node_modules\sharp\build\Release\sharp.pdb (Full PDB)
  Copying vendor/lib/libcroco-0.6-3.dll to build/Release\libcroco-0.6-3.dll
          1 file(s) copied.
  Copying vendor/lib/libfreetype-6.dll to build/Release\libfreetype-6.dll
          1 file(s) copied.
  Copying vendor/lib/libcairo-2.dll to build/Release\libcairo-2.dll
          1 file(s) copied.
  Copying vendor/lib/libexif-12.dll to build/Release\libexif-12.dll
          1 file(s) copied.
  Copying vendor/lib/libgdk_pixbuf-2.0-0.dll to build/Release\libgdk_pixbuf-2.0-0.dll
          1 file(s) copied.
  Copying vendor/lib/libtiff-5.dll to build/Release\libtiff-5.dll
          1 file(s) copied.
  Copying vendor/lib/liblcms2-2.dll to build/Release\liblcms2-2.dll
          1 file(s) copied.
  Copying vendor/lib/libcairo-gobject-2.dll to build/Release\libcairo-gobject-2.dll
          1 file(s) copied.
  Copying vendor/lib/libgif-7.dll to build/Release\libgif-7.dll
          1 file(s) copied.
  Copying vendor/lib/libxml2-2.dll to build/Release\libxml2-2.dll
          1 file(s) copied.
  Copying vendor/lib/libiconv-2.dll to build/Release\libiconv-2.dll
          1 file(s) copied.
  Copying vendor/lib/libjpeg-62.dll to build/Release\libjpeg-62.dll
          1 file(s) copied.
  Copying vendor/lib/libglib-2.0-0.dll to build/Release\libglib-2.0-0.dll
          1 file(s) copied.
  Copying vendor/lib/libfftw3-3.dll to build/Release\libfftw3-3.dll
          1 file(s) copied.
  Copying vendor/lib/libcairo-script-interpreter-2.dll to build/Release\libcairo-script-interpreter-2.dll
          1 file(s) copied.
  Copying vendor/lib/libgmodule-2.0-0.dll to build/Release\libgmodule-2.0-0.dll
          1 file(s) copied.
  Copying vendor/lib/libwebp-6.dll to build/Release\libwebp-6.dll
          1 file(s) copied.
  Copying vendor/lib/libgthread-2.0-0.dll to build/Release\libgthread-2.0-0.dll
          1 file(s) copied.
  Copying vendor/lib/libfontconfig-1.dll to build/Release\libfontconfig-1.dll
          1 file(s) copied.
  Copying vendor/lib/librsvg-2-2.dll to build/Release\librsvg-2-2.dll
          1 file(s) copied.
  Copying vendor/lib/GNU.Gettext.dll to build/Release\GNU.Gettext.dll
          1 file(s) copied.
  Copying vendor/lib/zlib1.dll to build/Release\zlib1.dll
          1 file(s) copied.
  Copying vendor/lib/libstdc++-6.dll to build/Release\libstdc++-6.dll
          1 file(s) copied.
  Copying vendor/lib/libasprintf-0.dll to build/Release\libasprintf-0.dll
          1 file(s) copied.
  Copying vendor/lib/libgobject-2.0-0.dll to build/Release\libgobject-2.0-0.dll
          1 file(s) copied.
  Copying vendor/lib/libgio-2.0-0.dll to build/Release\libgio-2.0-0.dll
          1 file(s) copied.
  Copying vendor/lib/libgcc_s_seh-1.dll to build/Release\libgcc_s_seh-1.dll
          1 file(s) copied.
  Copying vendor/lib/libquadmath-0.dll to build/Release\libquadmath-0.dll
          1 file(s) copied.
  Copying vendor/lib/libintl-8.dll to build/Release\libintl-8.dll
          1 file(s) copied.
  Copying vendor/lib/libpng16-16.dll to build/Release\libpng16-16.dll
          1 file(s) copied.
  Copying vendor/lib/libpango-1.0-0.dll to build/Release\libpango-1.0-0.dll
          1 file(s) copied.
  Copying vendor/lib/libpixman-1-0.dll to build/Release\libpixman-1-0.dll
          1 file(s) copied.
  Copying vendor/lib/libcharset-1.dll to build/Release\libcharset-1.dll
          1 file(s) copied.
  Copying vendor/lib/libpangocairo-1.0-0.dll to build/Release\libpangocairo-1.0-0.dll
          1 file(s) copied.
  Copying vendor/lib/libvips-42.dll to build/Release\libvips-42.dll
          1 file(s) copied.
  Copying vendor/lib/libgsf-1-114.dll to build/Release\libgsf-1-114.dll
          1 file(s) copied.
  Copying vendor/lib/libpangowin32-1.0-0.dll to build/Release\libpangowin32-1.0-0.dll
          1 file(s) copied.
  Copying vendor/lib/libffi-6.dll to build/Release\libffi-6.dll
          1 file(s) copied.
  Copying vendor/lib/libexpat-1.dll to build/Release\libexpat-1.dll
          1 file(s) copied.
  Copying vendor/lib/libssp-0.dll to build/Release\libssp-0.dll
          1 file(s) copied.
AspnetcoreSpa@0.0.0 D:\Code\novascreen\aspnetcore-spa
`-- sharp@0.17.2
  `-- color@1.0.3
    `-- color-string@1.4.0

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.17: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN AspnetcoreSpa@0.0.0 No description
npm WARN AspnetcoreSpa@0.0.0 No repository field.
npm WARN AspnetcoreSpa@0.0.0 No license field.
node
> require('sharp')
Error: The specified module could not be found.
\\?\D:\Code\novascreen\aspnetcore-spa\node_modules\sharp\build\Release\sharp.node
    at Object.Module._extensions..node (module.js:598:18)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (D:\Code\novascreen\aspnetcore-spa\node_modules\sharp\lib\constructor.js:8:15)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
lovell commented 7 years ago

Hello, this looks like a DLL conflict. Please can you try opening the D:\Code\novascreen\aspnetcore-spa\node_modules\sharp\build\Release\sharp.node file with Dependency Walker and see what problem(s) it reports.

novascreen commented 7 years ago
Error: At least one required implicit or forwarded dependency was not found.
Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
Error: A circular dependency was detected.
Warning: At least one delay-load dependency module was not found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.

For all the following it says Error opening file. The system cannot find the file specified (2).

API-MS-WIN-CORE-ATOMS-L1-1-0.DLL
API-MS-WIN-CORE-COM-L1-1-0
API-MS-WIN-CORE-COM-L1-1-1.DLL
API-MS-WIN-CORE-COM-L1-1-2.DLL
API-MS-WIN-CORE-COM-MIDLPROXYSTUB-L1-1-0.DLL
API-MS-WIN-CORE-COM-PRIVATE-L1-1-0.DLL
API-MS-WIN-CORE-COM-PRIVATE-L1-1-1.DLL
API-MS-WIN-CORE-COMM-L1-1-0.DLL
API-MS-WIN-CORE-CONSOLE-L2-1-0.DLL
API-MS-WIN-CORE-CONSOLE-L3-1-0.DLL
API-MS-WIN-CORE-CRT-L1-1-0.DLL
API-MS-WIN-CORE-CRT-L2-1-0.DLL
API-MS-WIN-CORE-DATETIME-L1-1-1.DLL
API-MS-WIN-CORE-DATETIME-L1-1-2.DLL
API-MS-WIN-CORE-DEBUG-L1-1-1.DLL
API-MS-WIN-CORE-DELAYLOAD-L1-1-1.DLL
API-MS-WIN-CORE-ENCLAVE-L1-1-0.DLL
API-MS-WIN-CORE-ERRORHANDLING-L1-1-1.DLL
API-MS-WIN-CORE-ERRORHANDLING-L1-1-3.DLL
API-MS-WIN-CORE-FIBERS-L1-1-1.DLL
API-MS-WIN-CORE-FIBERS-L2-1-1.DLL
API-MS-WIN-CORE-FILE-L1-2-1.DLL
API-MS-WIN-CORE-FILE-L1-2-2.DLL
API-MS-WIN-CORE-FILE-L2-1-1.DLL
API-MS-WIN-CORE-FILE-L2-1-2.DLL
API-MS-WIN-CORE-HEAP-L1-2-0.DLL
API-MS-WIN-CORE-HEAP-L2-1-0.DLL
API-MS-WIN-CORE-HEAP-OBSOLETE-L1-1-0.DLL
API-MS-WIN-CORE-INTERLOCKED-L1-2-0.DLL
API-MS-WIN-CORE-IO-L1-1-1.DLL
API-MS-WIN-CORE-JOB-L1-1-0.DLL
API-MS-WIN-CORE-JOB-L2-1-0.DLL
API-MS-WIN-CORE-KERNEL32-LEGACY-L1-1-1.DLL
API-MS-WIN-CORE-KERNEL32-LEGACY-L1-1-5.DLL
API-MS-WIN-CORE-KERNEL32-PRIVATE-L1-1-1.DLL
API-MS-WIN-CORE-KERNEL32-PRIVATE-L1-1-2.DLL
API-MS-WIN-CORE-LARGEINTEGER-L1-1-0.DLL
API-MS-WIN-CORE-LIBRARYLOADER-L1-2-0.DLL
API-MS-WIN-CORE-LIBRARYLOADER-L1-2-2.DLL
API-MS-WIN-CORE-LIBRARYLOADER-L2-1-0.DLL
API-MS-WIN-CORE-LOCALIZATION-L1-2-1.DLL
API-MS-WIN-CORE-LOCALIZATION-L1-2-2.DLL
API-MS-WIN-CORE-LOCALIZATION-L2-1-0.DLL
API-MS-WIN-CORE-LOCALIZATION-OBSOLETE-L1-3-0.DLL
API-MS-WIN-CORE-LOCALIZATION-PRIVATE-L1-1-0.DLL
API-MS-WIN-CORE-MEMORY-L1-1-2.DLL
API-MS-WIN-CORE-MISC-L1-1-0.DLL
API-MS-WIN-CORE-NAMEDPIPE-L1-2-0.DLL
API-MS-WIN-CORE-NAMEDPIPE-L1-2-2.DLL
API-MS-WIN-CORE-NAMESPACE-L1-1-0.DLL
API-MS-WIN-CORE-NORMALIZATION-L1-1-0.DLL
API-MS-WIN-CORE-PATH-L1-1-0.DLL
API-MS-WIN-CORE-PERFCOUNTERS-L1-1-0.DLL
API-MS-WIN-CORE-PRIVATEPROFILE-L1-1-1.DLL
API-MS-WIN-CORE-PROCESSENVIRONMENT-L1-2-0.DLL
API-MS-WIN-CORE-PROCESSSNAPSHOT-L1-1-0.DLL
API-MS-WIN-CORE-PROCESSTHREADS-L1-1-2.DLL
API-MS-WIN-CORE-PROCESSTHREADS-L1-1-3.DLL
API-MS-WIN-CORE-PROCESSTOPOLOGY-L1-2-0.DLL
API-MS-WIN-CORE-PSAPI-ANSI-L1-1-0.DLL
API-MS-WIN-CORE-PSAPI-L1-1-0.DLL
API-MS-WIN-CORE-PSM-KEY-L1-1-0.DLL
API-MS-WIN-CORE-QUIRKS-L1-1-0.DLL
API-MS-WIN-CORE-REALTIME-L1-1-0.DLL
API-MS-WIN-CORE-REGISTRY-L1-1-0.DLL
API-MS-WIN-CORE-REGISTRY-L1-1-1.DLL
API-MS-WIN-CORE-REGISTRYUSERSPECIFIC-L1-1-0.DLL
API-MS-WIN-CORE-RTLSUPPORT-L1-2-0.DLL
API-MS-WIN-CORE-SHLWAPI-LEGACY-L1-1-0.DLL
API-MS-WIN-CORE-SHLWAPI-OBSOLETE-L1-2-0.DLL
API-MS-WIN-CORE-SIDEBYSIDE-L1-1-0.DLL
API-MS-WIN-CORE-STRING-L2-1-0.DLL
API-MS-WIN-CORE-STRING-L2-1-1.DLL
API-MS-WIN-CORE-STRING-OBSOLETE-L1-1-0.DLL
API-MS-WIN-CORE-STRINGANSI-L1-1-0.DLL
API-MS-WIN-CORE-SYNCH-L1-2-1.DLL
API-MS-WIN-CORE-SYSINFO-L1-2-1.DLL
API-MS-WIN-CORE-SYSINFO-L1-2-3.DLL
API-MS-WIN-CORE-SYSTEMTOPOLOGY-L1-1-0.DLL
API-MS-WIN-CORE-SYSTEMTOPOLOGY-L1-1-1.DLL
API-MS-WIN-CORE-THREADPOOL-L1-2-0.DLL
API-MS-WIN-CORE-THREADPOOL-LEGACY-L1-1-0.DLL
API-MS-WIN-CORE-THREADPOOL-PRIVATE-L1-1-0.DLL
API-MS-WIN-CORE-URL-L1-1-0.DLL
API-MS-WIN-CORE-VERSION-L1-1-0.DLL
API-MS-WIN-CORE-VERSIONANSI-L1-1-0.DLL
API-MS-WIN-CORE-WINDOWSERRORREPORTING-L1-1-0.DLL
API-MS-WIN-CORE-WINDOWSERRORREPORTING-L1-1-1.DLL
API-MS-WIN-CORE-WINRT-ERROR-L1-1-1.DLL
API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL
API-MS-WIN-CORE-WOW64-L1-1-0.DLL
API-MS-WIN-CORE-WOW64-L1-1-1.DLL
API-MS-WIN-CORE-XSTATE-L2-1-0.DLL
API-MS-WIN-DEVICES-CONFIG-L1-1-1.DLL
API-MS-WIN-EVENTING-CLASSICPROVIDER-L1-1-0.DLL
API-MS-WIN-EVENTING-CONSUMER-L1-1-0.DLL
API-MS-WIN-EVENTING-OBSOLETE-L1-1-0.DLL
API-MS-WIN-GDI-INTERNAL-UAP-L1-1-0.DLL
API-MS-WIN-MM-MISC-L1-1-1.DLL
API-MS-WIN-MM-MME-L1-1-0.DLL
API-MS-WIN-MM-TIME-L1-1-0.DLL
API-MS-WIN-SECURITY-APPCONTAINER-L1-1-0.DLL
API-MS-WIN-SECURITY-AUDIT-L1-1-1.DLL
API-MS-WIN-SECURITY-BASE-L1-2-0.DLL
API-MS-WIN-SECURITY-BASE-PRIVATE-L1-1-1.DLL
API-MS-WIN-SECURITY-CAPABILITY-L1-1-0.DLL
API-MS-WIN-SERVICE-CORE-L1-1-1.DLL
API-MS-WIN-SERVICE-CORE-L1-1-2.DLL
API-MS-WIN-SERVICE-MANAGEMENT-L1-1-0.DLL
API-MS-WIN-SERVICE-MANAGEMENT-L2-1-0.DLL
API-MS-WIN-SERVICE-PRIVATE-L1-1-0
API-MS-WIN-SERVICE-PRIVATE-L1-1-1.DLL
API-MS-WIN-SERVICE-PRIVATE-L1-1-3.DLL
API-MS-WIN-SERVICE-WINSVC-L1-2-0.DLL
API-MS-WIN-SHCORE-PATH-L1-1-0.DLL
API-MS-WIN-SHELL-SHELLCOM-L1-1-0.DLL
API-MS-WIN-SHELL-SHELLFOLDERS-L1-1-0.DLL
API-MS-WIN-STORAGE-EXPORTS-EXTERNAL-L1-1-0.DLL
API-MS-WIN-STORAGE-EXPORTS-INTERNAL-L1-1-0.DLL
EXT-MS-WIN-GDI-INTERNAL-DESKTOP-L1-1-0
EXT-MS-WIN-USP10-L1-1-0.DLL
NODE.DLL
API-MS-ONECOREUAP-SETTINGSYNC-STATUS-L1-1-0.DLL
API-MS-WIN-APPMODEL-IDENTITY-L1-2-0.DLL
API-MS-WIN-APPMODEL-RUNTIME-INTERNAL-L1-1-0.DLL
API-MS-WIN-APPMODEL-RUNTIME-INTERNAL-L1-1-4.DLL
API-MS-WIN-APPMODEL-RUNTIME-L1-1-0.DLL
API-MS-WIN-APPMODEL-RUNTIME-L1-1-1.DLL
API-MS-WIN-APPMODEL-RUNTIME-L1-1-2.DLL
API-MS-WIN-APPMODEL-STATE-L1-2-0.DLL
API-MS-WIN-APPMODEL-UNLOCK-L1-1-0.DLL
API-MS-WIN-BASE-UTIL-L1-1-0.DLL
API-MS-WIN-CORE-CALENDAR-L1-1-0.DLL
API-MS-WIN-CORE-COM-L1-1-0.DLL
API-MS-WIN-CORE-COM-L2-1-1.DLL
API-MS-WIN-CORE-DELAYLOAD-L1-1-0.DLL
API-MS-WIN-CORE-FIRMWARE-L1-1-0.DLL
API-MS-WIN-CORE-IO-L1-1-0.DLL
API-MS-WIN-CORE-KERNEL32-LEGACY-L1-1-0.DLL
API-MS-WIN-CORE-LOCALIZATION-L1-1-0.DLL
API-MS-WIN-CORE-LOCALIZATION-OBSOLETE-L1-2-0.DLL
API-MS-WIN-CORE-LOCALREGISTRY-L1-1-0.DLL
API-MS-WIN-CORE-MARSHAL-L1-1-0.DLL
API-MS-WIN-CORE-MEMORY-L1-1-1.DLL
API-MS-WIN-CORE-MEMORY-L1-1-3.DLL
API-MS-WIN-CORE-PRIVATEPROFILE-L1-1-0.DLL
API-MS-WIN-CORE-PROCESSTOPOLOGY-OBSOLETE-L1-1-0.DLL
API-MS-WIN-CORE-PSM-APP-L1-1-0.DLL
API-MS-WIN-CORE-PSM-APPNOTIFY-L1-1-0.DLL
API-MS-WIN-CORE-REALTIME-L1-1-2.DLL
API-MS-WIN-CORE-REGISTRY-L2-2-0.DLL
API-MS-WIN-CORE-REGISTRY-PRIVATE-L1-1-0.DLL
API-MS-WIN-CORE-SHLWAPI-OBSOLETE-L1-1-0.DLL
API-MS-WIN-CORE-SHUTDOWN-L1-1-1.DLL
API-MS-WIN-CORE-SYSINFO-L1-2-0.DLL
API-MS-WIN-CORE-TEXTINPUT-CLIENT-L1-1-0.DLL
API-MS-WIN-CORE-TOOLHELP-L1-1-0.DLL
API-MS-WIN-CORE-VERSION-L1-1-1.DLL
API-MS-WIN-CORE-VERSION-PRIVATE-L1-1-0.DLL
API-MS-WIN-CORE-VERSIONANSI-L1-1-1.DLL
API-MS-WIN-CORE-WINRT-ERRORPRIVATE-L1-1-1.DLL
API-MS-WIN-CORE-WINRT-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-PROPERTYSETPRIVATE-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-PROPERTYSETPRIVATE-L1-1-1.DLL
API-MS-WIN-CORE-WINRT-REGISTRATION-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-ROBUFFER-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-STRING-L1-1-1.DLL
API-MS-WIN-COREUI-SECRUNTIME-L1-1-0.DLL
API-MS-WIN-DEVICES-QUERY-L1-1-1.DLL
API-MS-WIN-DOWNLEVEL-ADVAPI32-L1-1-0.DLL
API-MS-WIN-DOWNLEVEL-ADVAPI32-L2-1-0.DLL
API-MS-WIN-DOWNLEVEL-KERNEL32-L2-1-0.DLL
API-MS-WIN-DOWNLEVEL-NORMALIZ-L1-1-0.DLL
API-MS-WIN-DOWNLEVEL-OLE32-L1-1-0.DLL
API-MS-WIN-DOWNLEVEL-SHELL32-L1-1-0.DLL
API-MS-WIN-DOWNLEVEL-SHLWAPI-L1-1-0.DLL
API-MS-WIN-DOWNLEVEL-SHLWAPI-L2-1-0.DLL
API-MS-WIN-DOWNLEVEL-USER32-L1-1-0.DLL
API-MS-WIN-DOWNLEVEL-VERSION-L1-1-0.DLL
API-MS-WIN-DWMAPI-L1-1-0.DLL
API-MS-WIN-DX-D3DKMT-L1-1-0.DLL
API-MS-WIN-DX-D3DKMT-L1-1-3.DLL
API-MS-WIN-EVENTING-LEGACY-L1-1-0.DLL
API-MS-WIN-EVENTING-TDH-L1-1-0.DLL
API-MS-WIN-EVENTLOG-LEGACY-L1-1-0.DLL
API-MS-WIN-GDI-DPIINFO-L1-1-0.DLL
API-MS-WIN-HTTP-TIME-L1-1-0.DLL
API-MS-WIN-MM-JOYSTICK-L1-1-0.DLL
API-MS-WIN-MM-MISC-L2-1-0.DLL
API-MS-WIN-NTUSER-RECTANGLE-L1-1-0.DLL
API-MS-WIN-NTUSER-SYSPARAMS-L1-1-0.DLL
API-MS-WIN-OLE32-IE-L1-1-0.DLL
API-MS-WIN-POWER-BASE-L1-1-0.DLL
API-MS-WIN-POWER-SETTING-L1-1-0.DLL
API-MS-WIN-RO-TYPERESOLUTION-L1-1-0.DLL
API-MS-WIN-RTCORE-NTUSER-CLIPBOARD-L1-1-0.DLL
API-MS-WIN-RTCORE-NTUSER-PRIVATE-L1-1-0.DLL
API-MS-WIN-RTCORE-NTUSER-PRIVATE-L1-1-5.DLL
API-MS-WIN-RTCORE-NTUSER-SYNCH-L1-1-0.DLL
API-MS-WIN-RTCORE-NTUSER-WINDOW-L1-1-0.DLL
API-MS-WIN-RTCORE-NTUSER-WINEVENT-L1-1-0.DLL
API-MS-WIN-SECURITY-ACCESSHLPR-L1-1-0.DLL
API-MS-WIN-SECURITY-ACTIVEDIRECTORYCLIENT-L1-1-0.DLL
API-MS-WIN-SECURITY-ACTIVEDIRECTORYCLIENT-L1-1-1.DLL
API-MS-WIN-SECURITY-BASE-L1-1-0.DLL
API-MS-WIN-SECURITY-CREDENTIALS-L1-1-0.DLL
API-MS-WIN-SECURITY-CREDENTIALS-L2-1-0.DLL
API-MS-WIN-SECURITY-CRYPTOAPI-L1-1-0.DLL
API-MS-WIN-SECURITY-GROUPPOLICY-L1-1-0.DLL
API-MS-WIN-SECURITY-LSALOOKUP-ANSI-L2-1-0.DLL
API-MS-WIN-SECURITY-LSALOOKUP-L1-1-1.DLL
API-MS-WIN-SECURITY-LSALOOKUP-L1-1-2.DLL
API-MS-WIN-SECURITY-LSALOOKUP-L2-1-1.DLL
API-MS-WIN-SECURITY-LSAPOLICY-L1-1-0.DLL
API-MS-WIN-SECURITY-PROVIDER-L1-1-0.DLL
API-MS-WIN-SECURITY-SDDL-L1-1-0.DLL
API-MS-WIN-SECURITY-SDDLPARSECOND-L1-1-0.DLL
API-MS-WIN-SECURITY-SYSTEMFUNCTIONS-L1-1-0.DLL
API-MS-WIN-SERVICE-WINSVC-L1-1-0.DLL
API-MS-WIN-SHCORE-COMHELPERS-L1-1-0.DLL
API-MS-WIN-SHCORE-OBSOLETE-L1-1-0.DLL
API-MS-WIN-SHCORE-REGISTRY-L1-1-1.DLL
API-MS-WIN-SHCORE-SCALING-L1-1-1.DLL
API-MS-WIN-SHCORE-STREAM-L1-1-0.DLL
API-MS-WIN-SHCORE-STREAM-WINRT-L1-1-0.DLL
API-MS-WIN-SHCORE-SYSINFO-L1-1-0.DLL
API-MS-WIN-SHCORE-THREAD-L1-1-0.DLL
API-MS-WIN-SHCORE-UNICODEANSI-L1-1-0.DLL
API-MS-WIN-SHELL-CHANGENOTIFY-L1-1-0.DLL
API-MS-WIN-SHELL-NAMESPACE-L1-1-0.DLL
API-MS-WIN-SHELL-SHDIRECTORY-L1-1-0.DLL
API-MS-WIN-SHLWAPI-IE-L1-1-0.DLL
API-MS-WIN-SHLWAPI-WINRT-STORAGE-L1-1-1.DLL
DEVICELOCKHELPERS.DLL
EMCLIENT.DLL
EXT-MS-MF-PAL-L2-1-0.DLL
EXT-MS-ONECORE-APPCHROMEAPI-L1-1-0.DLL
EXT-MS-ONECORE-APPDEFAULTS-L1-1-0.DLL
EXT-MS-ONECORE-APPMODEL-EMCLIENT-L1-1-0.DLL
EXT-MS-ONECORE-DCOMP-L1-1-0.DLL
EXT-MS-ONECORE-HLINK-L1-1-0.DLL
EXT-MS-ONECORE-ORIENTATION-L1-1-0.DLL
EXT-MS-ONECORE-PHONEINFO-L1-1-0.DLL
EXT-MS-ONECORE-SHELLCHROMEAPI-L1-1-2.DLL
EXT-MS-WIN-ADVAPI32-MSI-L1-1-0.DLL
EXT-MS-WIN-ADVAPI32-NPUSERNAME-L1-1-0.DLL
EXT-MS-WIN-ADVAPI32-NTMARTA-L1-1-0.DLL
EXT-MS-WIN-ADVAPI32-PSM-APP-L1-1-0.DLL
EXT-MS-WIN-ADVAPI32-REGISTRY-L1-1-0.DLL
EXT-MS-WIN-ADVAPI32-SAFER-L1-1-0.DLL
EXT-MS-WIN-APPCOMPAT-AEPIC-L1-1-0.DLL
EXT-MS-WIN-APPCOMPAT-APPHELP-L1-1-0.DLL
EX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SION-WINSTA-L1-1-0.DLL
EXT-MS-WIN-SESSION-WTSAPI32-L1-1-0.DLL
EXT-MS-WIN-SETUPAPI-INF-L1-1-0.DLL
EXT-MS-WIN-SETUPAPI-INF-L1-1-1.DLL
EXT-MS-WIN-SHELL-DIRECTORY-L1-1-0.DLL
EXT-MS-WIN-SHELL-EMBEDDEDMODE-L1-1-0.DLL
EXT-MS-WIN-SHELL-SHELL32-L1-2-0.DLL
EXT-MS-WIN-SHELL-SHLWAPI-L1-2-0.DLL
EXT-MS-WIN-SHELL32-SHELLCOM-L1-1-0.DLL
EXT-MS-WIN-SHELL32-SHELLFOLDERS-L1-2-0.DLL
EXT-MS-WIN-SMBSHARE-BROWSERCLIENT-L1-1-0.DLL
EXT-MS-WIN-STORAGE-SENSE-L1-2-0.DLL
EXT-MS-WIN-SXS-OLEAUTOMATION-L1-1-0.DLL
EXT-MS-WIN-TSF-MSCTF-L1-1-2.DLL
EXT-MS-WIN-UI-VIEWMANAGEMENT-L1-1-0.DLL
EXT-MS-WIN-WER-UI-L1-1-0.DLL
EXT-MS-WIN-WER-XBOX-L1-1-0.DLL
EXT-MS-WIN-WINRT-STORAGE-L1-1-0.DLL
EXT-MS-WIN-WLAN-ONEXUI-L1-1-0.DLL
EXT-MS-WIN-WLAN-SCARD-L1-1-0.DLL
IESHIMS.DLL

I installed the Windows Build Tools via https://github.com/felixrieseberg/windows-build-tools

novascreen commented 7 years ago

Ok, I'm sorry, I feel really dumb, so many little problems today, I just didn't restart after installing the build tools. Appreciate your fast response!

novascreen commented 7 years ago

I suppose i should create an issue in https://github.com/zeit/hyper This is really weird, so when I run this in PowerShell or Hyper (with PowerShell) when it starts up it works fine. As soon as i open a second tab it fails. Even when it works inspecting the sharp.node file gives all the same errors as above though.

lovell commented 7 years ago

All the DLL files listed look like system files, so they're unlikely to be the problem if you've managed to get it working.

As for opening a second tab, is this only the case with Hyper? Does attempting to run in a second tab also produce the same Error: The specified module could not be found. message or a different error?

novascreen commented 7 years ago

Yeah, that's the error I'm seeing, only in a second (or more) tab and only in Hyper. I don't have that problem with Cmder or multiple windows of straight up PowerShell.

lovell commented 7 years ago

How does Hyper manage multiple tabs? Separate processes? Do you have the same problem with other native modules, e.g. bcrypt? npm install --build-from-source bcrypt

novascreen commented 7 years ago

i can reproduce the same error with bcrypt

module.js:598
  return process.dlopen(module, path._makeLong(filename));
                 ^

Error: The specified module could not be found.
\\?\C:\Users\thomas.hermann\node_modules\bcrypt\lib\binding\bcrypt_lib.node
    at Object.Module._extensions..node (module.js:598:18)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\thomas.hermann\node_modules\bcrypt\bcrypt.js:6:16)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)

When i start hyper it seems it creates 2 processes of powershell.exe, for the second tab a third process starts. I'm afraid that's all i can tell you.

lovell commented 7 years ago

If the same problem occurs with other native modules then this looks like a problem with the way Hyper manages processes and shared libraries rather than something specific to sharp (or bcrypt). Please can you report this upstream.