Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install issue with Node V12 #394

Open
KbDinesh87 opened this issue Jun 10, 2019 · 7 comments
Open

Install issue with Node V12 #394

KbDinesh87 opened this issue Jun 10, 2019 · 7 comments

Comments

@KbDinesh87
Copy link

KbDinesh87 commented Jun 10, 2019

Node version : v12.3.1

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build $EXTRA_NODE_PRE_GYP_FLAGS
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.

@fayad
Copy link

fayad commented Jun 26, 2019

Updating this related thread here to avoid a possible duplicate issue.

We are unable to pull hummus v1.0.104 on node:alpine (v12.4.0) and it seems to be missing files from server end.

[email protected] install /usr/src/app/node_modules/hummus
node-pre-gyp install --fallback-to-build $EXTRA_NODE_PRE_GYP_FLAGS

node-pre-gyp WARN Using needle for node-pre-gyp https download
node-pre-gyp WARN Tried to download(404): https://hummus.s3-us-west-2.amazonaws.com/hummus/v1.0.104/node-v72-linux-x64-musl.tar.gz
node-pre-gyp WARN Pre-built binaries not found for [email protected] and [email protected] (node-v72 ABI, musl) (falling back to source compile with node-gyp)
gyp ERR! configure error

@Frank683
Copy link

Since the author recently announced that he will not maintain this repo any further we must sadly state that hummus is dead for anyone who must use node 12.x :-(

@abenhamdine
Copy link

Since the author recently announced that he will not maintain this repo any further we must sadly state that hummus is dead for anyone who must use node 12.x :-(

We use hummusJS with nodejs 12 in production since months without any problem.

@Frank683
Copy link

Since the author recently announced that he will not maintain this repo any further we must sadly state that hummus is dead for anyone who must use node 12.x :-(

We use hummusJS with nodejs 12 in production since months without any problem.

Not by downloading precompiled binaries but compiling from source?

@abenhamdine
Copy link

abenhamdine commented Nov 12, 2019

Since the author recently announced that he will not maintain this repo any further we must sadly state that hummus is dead for anyone who must use node 12.x :-(

We use hummusJS with nodejs 12 in production since months without any problem.

Not by downloading precompiled binaries but compiling from source?

We use version 1.0.107 and compile from source with the following binding.gyp file :

{
    'targets': [
    {
            'target_name': 'hummus',
            'type': 'loadable_module',
			'product_extension': 'node',
            'dependencies': [
               './src/deps/PDFWriter/binding.gyp:pdfwriter'
            ],
            'include_dirs': [
                './src',
                './src/deps/PDFWriter',
                './src/deps/FreeType/include'
            ],
           'sources': [
                './src/ConstructorsHolder.cpp',
                './src/PDFStreamDriver.cpp',
                './src/DictionaryContextDriver.cpp',
                './src/PDFTextStringDriver.cpp',
                './src/PDFDateDriver.cpp',
                './src/PDFArrayDriver.cpp',
                './src/PDFDictionaryDriver.cpp',
                './src/PDFStreamInputDriver.cpp',
                './src/PDFIndirectObjectReferenceDriver.cpp',
                './src/PDFBooleanDriver.cpp',
                './src/PDFLiteralStringDriver.cpp',
                './src/PDFHexStringDriver.cpp',
                './src/PDFNullDriver.cpp',
                './src/PDFNameDriver.cpp',
                './src/PDFIntegerDriver.cpp',
                './src/PDFRealDriver.cpp',
                './src/PDFSymbolDriver.cpp',
                './src/PDFObjectDriver.cpp',
                './src/PDFReaderDriver.cpp',
                './src/DocumentCopyingContextDriver.cpp',
                './src/ObjectsContextDriver.cpp',
                './src/DocumentContextDriver.cpp',
                './src/ImageXObjectDriver.cpp',
                './src/UsedFontDriver.cpp',
                './src/ResourcesDictionaryDriver.cpp',
                './src/XObjectContentContextDriver.cpp',
                './src/FormXObjectDriver.cpp',
                './src/AbstractContentContextDriver.cpp',
                './src/PageContentContextDriver.cpp',
                './src/PDFPageDriver.cpp',
                './src/PDFPageModifierDriver.cpp',
                './src/PDFWriterDriver.cpp',
                './src/PDFPageInputDriver.cpp',
                './src/InputFileDriver.cpp',
                './src/OutputFileDriver.cpp',
                './src/InfoDictionaryDriver.cpp',
                './src/ByteReaderDriver.cpp',
                './src/ByteReaderWithPositionDriver.cpp',
                './src/ByteWriterDriver.cpp',
                './src/ByteWriterWithPositionDriver.cpp',
                './src/ObjectByteReader.cpp',
                './src/ObjectByteReaderWithPosition.cpp',
                './src/ObjectByteWriter.cpp',
                './src/ObjectByteWriterWithPosition.cpp',
                './src/PDFObjectParserDriver.cpp',
                './src/hummus.cpp'
            ]

	   },
		{
			'target_name': 'action_after_build',
			'type': 'none',
			'dependencies': [ '<(module_name)' ],
			'copies': [
				{
					'files': [
						'<(PRODUCT_DIR)/hummus.node'
					],
					'destination': '<(module_path)'
				}
			]
		}

    ]        
}

therefore we deploy the hummusjs code in /src
it works perfectly

@kwisatz
Copy link

kwisatz commented Nov 13, 2019

Thanks @abenhamdine for sharing!

Unfortunately that's only half the battle. We'll have to get someone or some group to take over maintenance of hummus or we'll all have to eventually migrate to something else anyway…

@Frank683
Copy link

@abenhamdine I tried it under Windows 10 x64 and binaries are available for download.

node-pre-gyp http GET https://hummus.s3-us-west-2.amazonaws.com/hummus/v1.0.108/node-v72-win32-x64-unknown.tar.gz
node-pre-gyp http 200 https://hummus.s3-us-west-2.amazonaws.com/hummus/v1.0.108/node-v72-win32-x64-unknown.tar.gz
node-pre-gyp info install unpacking binding/hummus.node
node-pre-gyp info tarball done parsing tarball

We also need it to work on Linux, so I will also conduct some tests there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants