node-jpeg-turbo
node-jpeg-turbo copied to clipboard
Windows instructions for installations results in error & prebuilt releases throwing 404s
I've followed the steps in the windows installation and have yasm
available and my msvs_version
is 2015. Performing the installation on stf
using npm install --save jpeg-turbo
results in the following error messages.
While installing jpeg-turbo
using npm in the stf
repository.
> [email protected] install C:\Users\t-sus\Documents\OpenSource\GameAutomators\stf\node_modules\jpeg-turbo
> node-pre-gyp install --fallback-to-build
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Building "C:\Users\t-sus\Documents\OpenSource\GameAutomators\stf\node_modules\jpeg-turbo\build\Release\obj/global_intermediate/jfdctflt-sse-64.obj"
yasm: FATAL: unable to open include file `jsimdcfg.inc'
C:\Users\t-sus\Documents\OpenSource\GameAutomators\stf\node_modules\jpeg-turbo\build\deps\jpeg-turbo.targets(28,5): error MSB3721: The command "call "yasm" "-felf" "-o" "C:\Users\t-sus\Documents\OpenSource\GameAutomators\stf\node_module
s\jpeg-turbo\build\Release\obj\global_intermediate\jfdctflt-sse-64.obj" "..\..\deps\libjpeg-turbo\simd\jfdctflt-sse-64.asm"" exited with code 1. [C:\Users\t-sus\Documents\OpenSource\GameAutomators\stf\node_modules\jpeg-turbo\build\deps\
jpeg-turbo.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\t-sus\Documents\OpenSource\GameAutomators\stf\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.14393
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\t-sus\\Documents\\OpenSource\\GameAutomators\\stf\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-build" "--module=C:\\Users\\t-sus\\Documents\\OpenSource\\GameAutomators\\stf\\node_modules\\jpeg-turbo\\lib\\binding\\node-v51-win32-x64\\jpegturbo.node" "--module_name=jpegturbo" "--module_path=C:\\Users\\t-sus\\Documents\\OpenSource\\GameAutomators\\stf\\node_modules\\jpeg-turbo\\lib\\binding\\node-v51-win32-x64"
gyp ERR! cwd C:\Users\t-sus\Documents\OpenSource\GameAutomators\stf\node_modules\jpeg-turbo
gyp ERR! node -v v7.8.0
gyp ERR! node-gyp -v v3.6.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\t-sus\Documents\OpenSource\GameAutomators\stf\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\t-sus\Documents\OpenSource\GameAutomators\stf\node_modules\jpeg-turbo\lib\binding\node-v51-win32-x64\jpegturbo.node --module_name=jpegturbo --module_path=C:\Users\t-sus\Documents\OpenSource\GameAutomators\stf\node_modules\jpeg-turbo\lib\binding\node-v51-win32-x64' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\t-sus\Documents\OpenSource\GameAutomators\stf\node_modules\jpeg-turbo\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:194:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:899:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Windows_NT 10.0.14393
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\t-sus\\Documents\\OpenSource\\GameAutomators\\stf\\node_modules\\jpeg-turbo\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\t-sus\Documents\OpenSource\GameAutomators\stf\node_modules\jpeg-turbo
node-pre-gyp ERR! node -v v7.8.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.19
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Users\t-sus\Documents\OpenSource\GameAutomators\stf\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=C:\Users\t-sus\Documents\OpenSource\GameAutomators\stf\node_modules\jpeg-turbo\lib\binding\node-v51-win32-x64\jpegturbo.node --module_name=jpegturbo --module_path=C:\Users\t-sus\Documents\OpenSource\GameAutomators\stf\node_modules\jpeg-turbo\lib\binding\node-v51-win32-x64' (1)
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 [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN Error: EPERM: operation not permitted, lstat 'C:\Users\t-sus\Documents\OpenSource\GameAutomators\stf\node_modules\jpeg-turbo\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\rimraf\node_modules\glob\node_modules\minimatch\node_modules\brace-expansion\node_modules'
npm WARN { Error: EPERM: operation not permitted, lstat 'C:\Users\t-sus\Documents\OpenSource\GameAutomators\stf\node_modules\jpeg-turbo\node_modules\node-pre-gyp\node_modules\tar-pack\node_modules\rimraf\node_modules\glob\node_modules\minimatch\node_modules\brace-expansion\node_modules'
npm WARN errno: -4048,
npm WARN code: 'EPERM',
npm WARN syscall: 'lstat',
npm WARN path: 'C:\\Users\\t-sus\\Documents\\OpenSource\\GameAutomators\\stf\\node_modules\\jpeg-turbo\\node_modules\\node-pre-gyp\\node_modules\\tar-pack\\node_modules\\rimraf\\node_modules\\glob\\node_modules\\minimatch\\node_modules\\brace-expansion\\node_modules' }
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save" "jpeg-turbo"
npm ERR! node v7.8.0
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the jpeg-turbo package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs jpeg-turbo
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls jpeg-turbo
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\t-sus\AppData\Roaming\npm-cache\_logs\2017-04-03T09_05_09_628Z-debug.log
Errors while building node-jpeg-turbo
.
C:\Users\t-sus\Documents\OpenSource\GameAutomators\node-jpeg-turbo>npm install
> [email protected] install C:\Users\t-sus\Documents\OpenSource\GameAutomators\node-jpeg-turbo
> node ./prebuilt-bindings install
[prebuilt-bindings] => Testing 'C:\Users\t-sus\Documents\OpenSource\GameAutomators\node-jpeg-turbo\build\Release\jpegturbo.node'...
[prebuilt-bindings] => Binding not found or incompatible
[prebuilt-bindings] => Downloading 'https://github.com/sorccu/node-jpeg-turbo/releases/download/v0.4.0/jpegturbo-51-win32-x64.node.gz'...
[prebuilt-bindings] => Server responded with '404 Not Found'
[prebuilt-bindings] => Downloading 'https://github.com/sorccu/node-jpeg-turbo/releases/download/v0.4.0/jpegturbo-51-win32-x64.node'...
[prebuilt-bindings] => Server responded with '404 Not Found'
[prebuilt-bindings] => Unable to install prebuilt bindings: Error: No compatible bindings found
[prebuilt-bindings] => Building from source...
C:\Users\t-sus\Documents\OpenSource\GameAutomators\node-jpeg-turbo>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
gyp ERR! clean error
gyp ERR! stack Error: EPERM: operation not permitted, unlink 'C:\Users\t-sus\Documents\OpenSource\GameAutomators\node-jpeg-turbo\build\Release\jpegturbo.node'
gyp ERR! System Windows_NT 10.0.14393
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\t-sus\Documents\OpenSource\GameAutomators\node-jpeg-turbo
gyp ERR! node -v v7.8.0
gyp ERR! node-gyp -v v3.5.0
gyp ERR! not ok
Usage: prebuilt-bindings [command...]
Commands:
build Builds bindings locally.
clean Removes installed bindings.
config Prints out the resolved config. Can be useful to understand what
prebuilt-bindings sees.
install Installs prebuilt bindings or builds them if none can be found.
Default command if none is given.
pack Packs configured bindings into properly named individual archives
for easy deployment.
Error: node-gyp failed with status 1
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v7.8.0
npm ERR! npm v4.2.0
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node ./prebuilt-bindings install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node ./prebuilt-bindings install'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the jpeg-turbo package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./prebuilt-bindings install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs jpeg-turbo
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls jpeg-turbo
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\t-sus\AppData\Roaming\npm-cache\_logs\2017-04-03T09_06_32_317Z-debug.log
Can you please tell me where I am going wrong here in the setup on windows ? I've been trying this for a few days now. I could successfully run it on mac. Should the prebuilt URLs be fixed for installations to work properly ?