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

Failed to install ng2-admin: node-pre-gyp ERR! Pre-built binaries not found for node-zopfli@1.4.0 and node@4.4.5 (node-v46 ABI) (falling back to source compile with node-gyp) #23

Closed
billycph opened this issue Jun 6, 2016 · 2 comments

Comments

@billycph
Copy link

billycph commented Jun 6, 2016

  • I'm submitting a ...
    [ ] bug report
  • What is the current behavior?
    While I am install the project by "npm install", I encounter such an error:

node-zopfli@1.4.0 install /home/peihao/angularTest/ng2-admin/node_modules/node-zopfli
node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download: https://node-zopfli.s3.amazonaws.com/Release/zopfli-v1.4.0-node-v46-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for node-zopfli@1.4.0 and node@4.4.5 (node-v46 ABI) (falling back to source compile with node-gyp)
make: Entering directory `/home/peihao/angularTest/ng2-admin/node_modules/node-zopfli/build'
CXX(target) Release/obj.target/zopfli/src/zopfli-binding.o
In file included from ../src/zopfli-binding.h:5,
from ../src/zopfli-binding.cc:3:
../../nan/nan.h:43:3: error: #error This version of node/NAN/v8 requires a C++11 compiler
In file included from /home/peihao/.node-gyp/4.4.5/include/node/node.h:42,
from ../src/zopfli-binding.cc:1:
......................................................................................................

  • Please tell us about your environment:

Here is the error message at the end of installation:

npm ERR! Linux 2.6.32-573.26.1.el6.x86_64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! node v4.4.5
npm ERR! npm v3.9.5
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! ng2-admin@0.0.1 postinstall: npm run typings -- install && bower install
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the ng2-admin@0.0.1 postinstall script 'npm run typings -- install && bower 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 ng2-admin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run typings -- install && bower install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs ng2-admin
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls ng2-admin
npm ERR! There is likely additional logging output above.

And my OS info is :

Linux Client for e-business (RHEL) 6.7
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Open Client RHEL 67 3.70
Red Hat Enterprise Linux Workstation release 6.7 (Santiago)

Does anyone encounter similar issues like this?

@nnixaa
Copy link
Collaborator

nnixaa commented Jun 6, 2016

@billycph please install bower globally npm install bower -g and then re-run npm install. We will update the documentation soon as it misses this step.

@billycph
Copy link
Author

billycph commented Jun 6, 2016

@nnixaa Thanks. Installing bower solved the problem and now I can run npm install. The application can be started.

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

3 participants