Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

npm install [email protected] failing #103

Open
mughal61 opened this issue Aug 10, 2020 · 1 comment
Open

npm install [email protected] failing #103

mughal61 opened this issue Aug 10, 2020 · 1 comment

Comments

@mughal61
Copy link

Hello,

I am trying to download and install node packages and my package.json file does have the dependency [email protected] that needs to be downloaded and installed but I am getting an error:

FYI I am using node version as v6.2.1 and this [email protected] used to be working fine in the past.

npm install [email protected]

[email protected] install /Users/username/Desktop/code/master/mobile/node_modules/lz4
node-gyp rebuild

CXX(target) Release/obj.target/lz4/lib/binding/lz4_binding.o
clang: warning: include path for libstdc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
In file included from ../lib/binding/lz4_binding.cc:6:
../../nan/nan.h:59:10: fatal error: 'algorithm' file not found
#include
^~~~~~~~~~~
1 error generated.
make: *** [Release/obj.target/lz4/lib/binding/lz4_binding.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/user/.nvm/versions/node/v6.2.1/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:204:12)
gyp ERR! System Darwin 19.6.0
gyp ERR! command "/Users/user/.nvm/versions/node/v6.2.1/bin/node" "/Users/user/.nvm/versions/node/v6.2.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/username/Desktop/code/master/mobile/node_modules/lz4
gyp ERR! node -v v6.2.1
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok

npm ERR! Darwin 19.6.0
npm ERR! argv "/Users/user/.nvm/versions/node/v6.2.1/bin/node" "/Users/user/.nvm/versions/node/v6.2.1/bin/npm" "install" "[email protected]" "-stdlib=libc++"
npm ERR! node v6.2.1
npm ERR! npm v3.9.3
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 lz4 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 lz4
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls lz4
npm ERR! There is likely additional logging output above.

Note: I've also tried running this cmd as suggested above in the error like npm install [email protected] -stdlib=libc++

Thanks in advance!

@ankon
Copy link
Contributor

ankon commented Aug 11, 2020

The -stdlib=libc++ is a argument that would be needed on the compilation step, not on the npm install command.

That being said:

FYI I am using node version as v6.2.1 and this [email protected] used to be working fine in the past.

So, what has changed since it worked? Did you update your system and/or compiler maybe?

NodeJS 6 is pretty much at the end of its useful life, and the node-lz4 package has also moved to a newer minor version (0.6.3, see #99).

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

No branches or pull requests

2 participants