-
Notifications
You must be signed in to change notification settings - Fork 12k
Failed to build zopfli (was: Installation failed on Ubuntu 16.04LTS with Node 7.0.0 and npm 3.10.9) #3027
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
Comments
UPDATE: short of anything better, I followed the procedure described for manual upgrades of beta (uninstall, clean cache, reinstall), while being root (sudo bash). Now, ng seems to be installed and at least partially running (will check further) but the build errors for native extensions remain (see attached file for details). --- start log excerpt ---
[execsync v1.0.2] Attempting to compile native extensions.
node-pre-gyp ERR! Tried to download(403): https://node-zopfli.s3.amazonaws.com/Release/zopfli-v2.0.1-node-v51-linux-x64.tar.gz |
The native extension build errors can be safely ignored. As long as Sudo should be avoided, see here https://docs.npmjs.com/getting-started/fixing-npm-permissions. That was probably the reason for your errors from the start. |
OK, noted. Thanks to both :-) |
(Duplicating my comment on #3214) For those who are still wondering... The issue in most cases is that the node-zopfil package needs to be locally compiled on most systems, and it requires C++11 compilation options. For those of you on an Ubuntu/Debian distro, this means using a g++ compiler with a version 5.1 or later. If you wish to upgrade the default compiler, follow these steps:
You will still get some compiler warnings about unused functions, but the overall NPM setup and installation should proceed without error. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
OS?
Ubuntu 16.04LTS
Versions.
ng claims to be installed but outputs undefined to 'ng --version' (node --version : 7.0.0)
Repro steps.
"ng new" fails silently: no error message but no file (nor directory) creation.
The log given by the failure.
(No log: absolutely no output, despite 'which ng' yielding '/usr/local/bin/ng' :-()
Mention any other details that might be useful.
Installation emitted several warning (deprecations) and errors when attempting to compile native extensions (maybe due to the unavoidable sudo under Ubuntu for "npm install ... -g"?). Problem is compounded by the fact that reinstalling or uninstalling/reinstalling does not seem to trigger compilation attempts again; so I'm stuck.
Output from very first installation attached below:
ng-cli.install.log-1.txt
The text was updated successfully, but these errors were encountered: