zmwangx / homebrew-npm-noob

Generate Homebrew formulae for npm packages
MIT License
39 stars 6 forks source link

Cannot install with `brew` #17

Open rrthomas opened 6 months ago

rrthomas commented 6 months ago

Installing works fine with pip, but with brew I get the following rather obscure error:

brew install zmwangx/npm-noob/noob
==> Tapping zmwangx/npm-noob
Cloning into '/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/zmwangx/homebrew-npm-noob'...
remote: Enumerating objects: 111, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 111 (delta 0), reused 2 (delta 0), pack-reused 107
Receiving objects: 100% (111/111), 36.09 KiB | 924.00 KiB/s, done.
Resolving deltas: 100% (49/49), done.
Tapped 1 formula (23 files, 140.5KB).
==> Fetching zmwangx/npm-noob/noob
==> Downloading https://github.com/zmwangx/homebrew-npm-noob/archive/v0.3.tar.gz
==> Downloading from https://codeload.github.com/zmwangx/homebrew-npm-noob/tar.gz/refs/tags/v0.3
#=#=- #     #                                                                                                                                                 
==> Installing noob from zmwangx/npm-noob
==> python3 -m venv --system-site-packages --without-pip /home/linuxbrew/.linuxbrew/Cellar/noob/0.3/libexec
==> /home/linuxbrew/.linuxbrew/Cellar/noob/0.3/libexec/bin/pip install .
Last 15 lines from /home/rrt/.cache/Homebrew/Logs/noob/02.pip:
2024-02-13 20:53:01 +0000

/home/linuxbrew/.linuxbrew/Cellar/noob/0.3/libexec/bin/pip
install
.

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/zmwangx/homebrew-npm-noob/issues

There's no error message I can see here, other than telling me where to report it, and the exit code being 1.

alanhe421 commented 4 months ago

you can use the following. just have a try.

pip install homebrew-npm-noob
rrthomas commented 4 months ago

Sure, installing from pip works fine, as I said in my report.

alanhe421 commented 4 months ago

Sure, installing from pip works fine, as I said in my report.

ok. I also switched to pip to solve the problem.

alanhe421 commented 4 months ago

@rrthomas

I would like to ask. Another problem I'm having with this package is that the dependency on node doesn't limit the node version, so brew install installs the module with node@latest.

When using the module's cli, it may be executed under another node version, so it will report an error.

rrthomas commented 4 months ago

Sorry @alanhg, I'm not a brew expert, hence my using this package in the first place!

alanhe421 commented 4 months ago

Sorry @alanhg, I'm not a brew expert, hence my using this package in the first place!

thank you.