Homebrew / legacy-homebrew

💀 The former home of Homebrew/homebrew (deprecated)
https://brew.sh
26.98k stars 11.36k forks source link

[node v5.2.0] npm install failed #46886

Closed leecade closed 8 years ago

leecade commented 8 years ago
Download failed: http://7xkcej.dl1.z0.glb.clouddn.com/bottles/node-5.2.0.el_capitan.bottle.tar.gz
Warning: Bottle installation failed: building from source.
==> Downloading https://nodejs.org/dist/v5.2.0/node-v5.2.0.tar.gz
Already downloaded: /Library/Caches/Homebrew/node-5.2.0.tar.gz
==> Downloading https://ssl.icu-project.org/files/icu4c/56.1/icu4c-56_1-src.tgz
Already downloaded: /Library/Caches/Homebrew/node--icu4c-56.1.tgz
==> ./configure --prefix=/usr/local/Cellar/node/5.2.0 --without-npm --with-intl=small-icu
==> make install
==> Downloading https://registry.npmjs.org/npm/-/npm-3.3.12.tgz
Already downloaded: /Library/Caches/Homebrew/node--npm-3.3.12.tgz
==> ./configure --prefix=/usr/local/Cellar/node/5.2.0/libexec/npm
==> make install
Error: No such file or directory - /usr/local/Cellar/node/5.2.0/libexec/npm/lib/node_modules/npm

It seems need make sure the directory is exist.

DomT4 commented 8 years ago

I can't reproduce this at all, neither could the CI a few days ago. Can you provide a full brew gist-logs node here? Thanks.

Download failed: http://7xkcej.dl1.z0.glb.clouddn.com/bottles/node-5.2.0.el_capitan.bottle.tar.gz

I presume you're deliberately using an unofficial bottle mirror?

leecade commented 8 years ago

@DomT4 yeah I used a mirrror, it is not a problem

I work on OSX EI Capitan 10.11.2(15C50), maybe lead to some problems?

$ brew gist-logs node

https://gist.github.com/e2af61ad12c5efa18cce

dunn commented 8 years ago

Try again using the correct repository.

With a non-standard origin, Homebrew won't pull updates from
the main repository. The current git origin is:
  https://gitcafe.com/ban-ninja/homebrew.git

Unless you have compelling reasons, consider setting the
origin remote to point at the main repository, located at:
  https://github.com/Homebrew/homebrew.git
DomT4 commented 8 years ago

Let us know if we can help further here, Thanks!