gaetandezeiraud / bsdiff-node Goto Github PK
View Code? Open in Web Editor NEWAn binary diff and patch library based on bsdiff algorithm for NodeJS (Windows, Mac, Linux).
Home Page: https://www.npmjs.com/package/bsdiff-node
License: MIT License
An binary diff and patch library based on bsdiff algorithm for NodeJS (Windows, Mac, Linux).
Home Page: https://www.npmjs.com/package/bsdiff-node
License: MIT License
Hi there..
I try to use bsdiff-node in nodejs worker_threads,but got the error : " Module did not self-register."
[Nest] 76026 - 10/15/2021, 6:09:35 PM ERROR [ExceptionsHandler] Module did not self-register: '/Users/zhaopeng06/Documents/code/kuaishou/yoda-backstage/node_modules/bsdiff-node/build/Release/bsdiff.node'.
Error: Module did not self-register: '/Users/zhaopeng06/Documents/code/kuaishou/yoda-backstage/node_modules/bsdiff-node/build/Release/bsdiff.node'.
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1122:18)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (/Users/zhaopeng06/Documents/code/kuaishou/yoda-backstage/node_modules/bsdiff-node/index.js:3:16)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
probably related to #21783?
Describe the bug
When i install [email protected]
in windows 10, I got a error.
To Reproduce
Steps to reproduce the behavior:
npm install --save bsdiff-nodejs
Expected behavior
Successfully installed.
Screenshots
npm install --save bsdiff-nodejs
> [email protected] install D:\work\gitkraken-i18n\node_modules\bsdiff-nodejs
> node-gyp rebuild
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
Main.cpp
DiffWorkerCallback.cpp
PatchWorkerCallback.cpp
win_delay_load_hook.cc
bsdiff.c
bspatch.c
bzlib.c
compress.c
d:\work\gitkraken-i18n\node_modules\bsdiff-nodejs\src\c\bspatch\../shared.h(30): fatal error C1083: Cannot open include file: 'bzlib.h': No such file or directory (compiling source
file ..\src\c\bspatch\bspatch.c) [D:\work\gitkraken-i18n\node_modules\bsdiff-nodejs\build\bsdiff.vcxproj]
crctable.c
d:\work\gitkraken-i18n\node_modules\bsdiff-nodejs\src\c\bsdiff\../shared.h(30): fatal error C1083: Cannot open include file: 'bzlib.h': No such file or directory (compiling source
file ..\src\c\bsdiff\bsdiff.c) [D:\work\gitkraken-i18n\node_modules\bsdiff-nodejs\build\bsdiff.vcxproj]
randtable.c
..\src\c\bzip2\compress.c(205): warning C4244: '=': conversion from '__int64' to 'Int32', possible loss of data [D:\work\gitkraken-i18n\node_modules\bsdiff-nodejs\build\bsdiff.vcxp
roj]
blocksort.c
huffman.c
decompress.c
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 (D:\apps\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "D:\\apps\\nodejs\\node.exe" "D:\\apps\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\work\gitkraken-i18n\node_modules\bsdiff-nodejs
gyp ERR! node -v v8.11.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN [email protected] requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
the patch api throws error 'No such file or directory' when the file path contains chinese character on Windows 10.
const oldFile = 'C:\\Users\\famingyuan\\Desktop\\rhtx\\release\\1.2.0\\v1.2.0-win64-prod-c626ef.asar'
const newFile = 'C:\\Users\\famingyuan\\Desktop\\rhtx\\release\\1.3.0\\result.asar'
const patchFile = 'C:\\Users\\famingyuan\\Desktop\\rhtx\\release\\1.3.0\\中文\\win64-prod-c626ef-96fdc1.patch'
try {
bsdiff.patch(oldFile, newFile, patchFile, function (result) {
// console.log('progress:' + result + '%')
})
} catch (err) {
console.error(err) // No such file or directory
}
npm ERR! Darwin 17.4.0
npm ERR! argv "/.nvm/versions/node/v6.11.5/bin/node" "
/.nvm/versions/node/v6.11.5/bin/npm" "install" "bsdiff-nodejs" "--save"
npm ERR! node v6.11.5
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
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 bsdiff-nodejs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs bsdiff-nodejs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls bsdiff-nodejs
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! npm-debug.log
$ npm install Dezeiraud/bsdiff-nodejs
[email protected] install/node_modules/bsdiff-nodejs
node-gyp rebuild
CXX(target) Release/obj.target/bsdiff/src/main.o
CC(target) Release/obj.target/bsdiff/src/bsdiff/bsdiff.o
../src/bsdiff/bsdiff.c:224:32: error: use of undeclared identifier 'O_BINARY'
if(((fd=open(oldfile,O_RDONLY|O_BINARY|O_NOINHERIT,0))<0) ||
^
../src/bsdiff/bsdiff.c:224:41: error: use of undeclared identifier 'O_NOINHERIT'
if(((fd=open(oldfile,O_RDONLY|O_BINARY|O_NOINHERIT,0))<0) ||
^
../src/bsdiff/bsdiff.c:246:32: error: use of undeclared identifier 'O_BINARY'
if(((fd=open(newfile,O_RDONLY|O_BINARY|O_NOINHERIT,0))<0) ||
^
../src/bsdiff/bsdiff.c:246:41: error: use of undeclared identifier 'O_NOINHERIT'
if(((fd=open(newfile,O_RDONLY|O_BINARY|O_NOINHERIT,0))<0) ||
^
4 errors generated.
make: *** [Release/obj.target/bsdiff/src/bsdiff/bsdiff.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/.nvm/versions/node/v6.11.5/lib/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:219:12)
gyp ERR! System Darwin 17.4.0
gyp ERR! command "/.nvm/versions/node/v6.11.5/bin/node" "//.nvm/versions/node/v6.11.5/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /node_modules/bsdiff-nodejs
gyp ERR! node -v v6.11.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm i bsdiff-node --registry=https://registry.npmjs.org/
npm ERR! code 1
npm ERR! path /opt/applications/team/venus-doc/node_modules/bsdiff-node
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! make: Entering directory /opt/applications/team/venus-doc/node_modules/bsdiff-node/build' npm ERR! CXX(target) Release/obj.target/bsdiff/src/Main.o npm ERR! make: Leaving directory
/opt/applications/team/venus-doc/node_modules/bsdiff-node/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | linux | x64
npm ERR! gyp info find Python using Python version 3.6.8 found at "/bin/python3"
npm ERR! gyp info spawn /bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args 'binding.gyp',
npm ERR! gyp info spawn args '-f',
npm ERR! gyp info spawn args 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/opt/applications/team/venus-doc/node_modules/bsdiff-node/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/root/.cache/node-gyp/17.9.0/include/node/common.gypi',
npm ERR! gyp info spawn args '-Dlibrary=shared_library',
npm ERR! gyp info spawn args '-Dvisibility=default',
npm ERR! gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/17.9.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/17.9.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/opt/applications/team/venus-doc/node_modules/bsdiff-node',
npm ERR! gyp info spawn args '-Dnode_engine=v8',
npm ERR! gyp info spawn args '--depth=.',
npm ERR! gyp info spawn args '--no-parallel',
npm ERR! gyp info spawn args '--generator-output',
npm ERR! gyp info spawn args 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! g++: error: unrecognized command line option ‘-std=gnu++17’
npm ERR! make: *** [Release/obj.target/bsdiff/src/Main.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: make
failed with exit code: 2
npm ERR! gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:527:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Linux 3.10.0-957.el7.x86_64
npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /opt/applications/team/venus-doc/node_modules/bsdiff-node
npm ERR! gyp ERR! node -v v17.9.0
npm ERR! gyp ERR! node-gyp -v v9.0.0
npm ERR! gyp ERR! not ok
Hello,
When trying to use this module, I got an error for nodejs version:
Error: The module '\\?\C:\Users\Calvi\Documents\GitHub\electron-vite-vue\node_modules\bsdiff-node\build\Release\bsdiff.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 93. This version of Node.js requires NODE_MODULE_VERSION 107. Please try re-compiling or re-installing the module (for instance, using
npm rebuildor
npm install).
When trying to npm rebuild, run again, same error.
I tried to install electron-rebuild, and rebuild from this module, but got :
Building module: bsdiff-node, Completed: 0C:\Users\Calvi\Documents\GitHub\electron-vite-vue\node_modules\nan\nan_callbacks.h(55,23): error C2039: 'AccessorSignature' n'est pas membre de 'v8' [C:\Users\Calvi\Documents\GitHub\electron-vite-vue\node_modules\bsdiff-node\build\bsdiff.vcxproj] C:\Users\Calvi\.electron-gyp\20.1.3\include\node\v8.h(71): message : voir la déclaration de 'v8' [C:\Users\Calvi\Documents\GitHub\electron-vite-vue\node_modules\bsdiff-node\build\bsdiff.vcxproj] C:\Users\Calvi\Documents\GitHub\electron-vite-vue\node_modules\nan\nan_callbacks.h(55,40): error C2065: 'AccessorSignature' : identificateur non déclaré [C:\Users\Calvi\Documents\GitHub\electron-vite-vue\node_modules\bsdiff-node\build\bsdiff.vcxproj] C:\Users\Calvi\Documents\GitHub\electron-vite-vue\node_modules\nan\nan_callbacks.h(55,13): error C2923: 'v8::Local' : 'AccessorSignature' n'est pas un argument de type modèle valide pour le paramètre 'T' [C:\Users\Calvi\Documents\GitHub\electron-vite-vue\node_ modules\bsdiff-node\build\bsdiff.vcxproj] C:\Users\Calvi\Documents\GitHub\electron-vite-vue\node_modules\nan\nan.h(2520,36): error C2512: 'v8::Local' : aucun constructeur par défaut approprié disponible [C:\Users\Calvi\Documents\GitHub\electron-vite-vue\node_modules\bsdiff-node\build\bsdiff.vcxproj] C:\Users\Calvi\Documents\GitHub\electron-vite-vue\node_modules\nan\nan.h(2520,36): message : Aucun constructeur n'a pu prendre le type de source, ou la résolution de la surcharge du constructeur était ambiguë [C:\Users\Calvi\Documents\GitHub\electron-vite-vue\ node_modules\bsdiff-node\build\bsdiff.vcxproj] C:\Users\Calvi\Documents\GitHub\electron-vite-vue\node_modules\nan\nan.h(2546,6): error C2664: 'void v8::ObjectTemplate::SetAccessor(v8::Local<v8::String>,v8::AccessorGetterCallback,v8::AccessorSetterCallback,v8::Local<v8::Value>,v8::AccessControl,v8::Property Attribute,v8::SideEffectType,v8::SideEffectType)' : impossible de convertir l'argument 2 de 'Nan::imp::NativeGetter' en 'v8::AccessorGetterCallback' [C:\Users\Calvi\Documents\GitHub\electron-vite-vue\node_modules\bsdiff-node\build\bsdiff.vcxproj] C:\Users\Calvi\Documents\GitHub\electron-vite-vue\node_modules\nan\nan.h(2548,7): message : Cette conversion requiert reinterpret_cast, un cast de style C ou un cast de style fonction [C:\Users\Calvi\Documents\GitHub\electron-vite-vue\node_modules\bsdiff-node\ build\bsdiff.vcxproj] C:\Users\Calvi\.electron-gyp\20.1.3\include\node\v8-template.h(807,8): message : voir la déclaration de 'v8::ObjectTemplate::SetAccessor' [C:\Users\Calvi\Documents\GitHub\electron-vite-vue\node_modules\bsdiff-node\build\bsdiff.vcxproj] ✖ Rebuild Failed
This is in french sorry but mostly the errors are: There is no Constructor | XXX is not a valid template type argument for parameter...
node: 16.17.0
npm: 8.19.1
python: 3.10.0
Visual Studio: 2019 with desktop development C++ workload
Describe the bug
Previous Issue: #14
We followed the advice and downgrade the package to v2.0.7 ( cannot get v2.0.8 from npm =. = )
But the bug still takes place as same as v2.2.0
Any other suggests? Thanks
Describe the bug
Module fails to start.
To Reproduce
Steps to reproduce the behavior:
const bsdiff = require('bsdiff-nodejs');
...
bsdiff.diff(path.resolve("./assets/image.png"), path.resolve("./assets/image2.png"), path.resolve("./assets.patch"), function(result, err) {
console.log(result + err);
});
Error
Error: A dynamic link library (DLL) initialization routine failed.
\\?\D:\GitHub\...\node_modules\bsdiff-nodejs\build\Release\bsdiff.node
at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:173:20)
at Object.Module._extensions..node (module.js:598:18)
at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:173:20)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Function.t._load (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:814:682)
at Function.t.getExtensionPathIndex.then.o._load (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:765:373)
at Module.require (module.js:498:17)
at Module.patchedRequire [as require] (c:\Program Files\Microsoft VS Code\resources\app\extensions\git\node_modules\diagnostic-channel\dist\src\patchRequire.js:14:46)
at require (internal/module.js:20:19)
at Object.<anonymous> (D:\GitHub\...\node_modules\bsdiff-nodejs\index.js:1:171)
at Object.<anonymous> (D:\GitHub\...\node_modules\bsdiff-nodejs\index.js:3:3)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Function.t._load (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:814:682)
at Function.t.getExtensionPathIndex.then.o._load (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:765:373)
at Module.require (module.js:498:17)
at Module.patchedRequire [as require] (c:\Program Files\Microsoft VS Code\resources\app\extensions\git\node_modules\diagnostic-channel\dist\src\patchRequire.js:14:46)
at require (internal/module.js:20:19)
at Object.<anonymous> (D:\GitHub\...\src\index.js:16:16)
at Object.<anonymous> (D:\GitHub\...\src\index.js:44:3)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Function.t._load (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:814:682)
at Function.t.getExtensionPathIndex.then.o._load (c:\Program Files\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:765:373)
at Module.require (module.js:498:17)
at Module.patchedRequire [as require] (c:\Program Files\Microsoft VS Code\resources\app\extensions\git\node_modules\diagnostic-channel\dist\src\patchRequire.js:14:46)
Desktop (please complete the following information):
I have to use bsdiff on my electron 7 app but it build failed now on
Hey,
Thanks for your work on this project.
I wonder how I can add an event to show how much time left to the end of the process.
Thanks
Tzelon
We need to configuration NODE_PRE_GYP_GITHUB_TOKEN environment variable:
https://www.npmjs.com/package/node-pre-gyp-github#configuration
node-pre-gyp-github
require NODE_PRE_GYP_GITHUB_TOKEN
to publish binaries
We can setup here:
https://ci.appveyor.com/project/Brouilles/bsdiff-nodejs/settings/environment
https://travis-ci.org/Dezeiraud/bsdiff-nodejs/settings
Once you've configured these, CIs will automatically upload the pre-built files to release each time you create a new release version.
OS: Windows 10
Version: 2.2.0
NodeVersion: 13.1.0 (32-bit)
Describe the bug
When patch: always throw "Corrupt patch" while on Mac it does OK;
seems like using 64-bit node version can fix this problem, but we need the 32-bit arch!!
At the begining of the readme example the fs is required but never used.
Hi,
Is it possible to integrate the functionality where the diff and patch functions can accept string or buffer rather than accepting the file url?
Thanks in advance!
Describe the bug
When i install [email protected]
in windows 10, I got a error.
To Reproduce
Steps to reproduce the behavior:
npm install --save bsdiff-nodejs
Expected behavior
Successfully installed.
Screenshots
npm install --save bsdiff-nodejs
> [email protected] install D:\work\gitkraken-i18n\node_modules\bsdiff-nodejs
> node-gyp rebuild
在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。
Main.cpp
DiffWorkerCallback.cpp
PatchWorkerCallback.cpp
win_delay_load_hook.cc
bsdiff.c
bspatch.c
bzlib.c
compress.c
d:\work\gitkraken-i18n\node_modules\bsdiff-nodejs\src\c\bspatch\../shared.h(30): fatal error C1083: Cannot open include file: 'bzlib.h': No such file or directory (compiling source
file ..\src\c\bspatch\bspatch.c) [D:\work\gitkraken-i18n\node_modules\bsdiff-nodejs\build\bsdiff.vcxproj]
crctable.c
d:\work\gitkraken-i18n\node_modules\bsdiff-nodejs\src\c\bsdiff\../shared.h(30): fatal error C1083: Cannot open include file: 'bzlib.h': No such file or directory (compiling source
file ..\src\c\bsdiff\bsdiff.c) [D:\work\gitkraken-i18n\node_modules\bsdiff-nodejs\build\bsdiff.vcxproj]
randtable.c
..\src\c\bzip2\compress.c(205): warning C4244: '=': conversion from '__int64' to 'Int32', possible loss of data [D:\work\gitkraken-i18n\node_modules\bsdiff-nodejs\build\bsdiff.vcxp
roj]
blocksort.c
huffman.c
decompress.c
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 (D:\apps\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at emitTwo (events.js:126:13)
gyp ERR! stack at ChildProcess.emit (events.js:214:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "D:\\apps\\nodejs\\node.exe" "D:\\apps\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\work\gitkraken-i18n\node_modules\bsdiff-nodejs
gyp ERR! node -v v8.11.4
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN [email protected] requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No license field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
Hi there..
I noticed the bsdiff-nodejs
npm package was deprecated, why is that?
I found that you've made some commits that point to @brouilles/bsdiff-nodejs
instead, but that package does not exist, and isn't the name specified in package.json either?
Curious what the plan is ? 🙂
error /zzer-mobile-middle-server/node_modules/bsdiff-node: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments:
Directory: /zzer-mobile-middle-server/node_modules/bsdiff-node
Output:
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
gyp http GET https://nodejs.org/download/release/v17.7.1/node-v17.7.1-headers.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack FetchError: request to https://nodejs.org/download/release/v17.7.1/node-v17.7.1-headers.tar.gz failed, reason: connect ETIMEDOUT 104.20.22.46:443
gyp ERR! stack at ClientRequest. (/usr/local/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:110:14)
gyp ERR! stack at ClientRequest.emit (node:events:527:28)
gyp ERR! stack at TLSSocket.socketErrorListener (node:_http_client:442:9)
gyp ERR! stack at TLSSocket.emit (node:events:539:35)
gyp ERR! stack at emitErrorNT (node:internal/streams/destroy:164:8)
gyp ERR! stack at emitErrorCloseNT (node:internal/streams/destroy:129:3)
gyp ERR! stack at processTicksAndRejections (node:internal/process/task_queues:83:21)
gyp ERR! System Linux 3.10.0-1160.45.1.el7.x86_64
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /zzer-mobile-middle-server/node_modules/bsdiff-node
gyp ERR! node -v v17.7.1
gyp ERR! node-gyp -v v8.4.1
gyp ERR! not ok
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.