Deno: Install deno with homebrew

Created on 9 Jan 2019  ยท  21Comments  ยท  Source: denoland/deno

My mac version is macOS Mojave.10.14.3

Most helpful comment

brew install deno now works!

 % brew install deno
==> Downloading https://homebrew.bintray.com/bottles/deno-0.6.0.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/47/470aa4ad260593875fff68af034a574d447ddeeacb0a0f6ca5b99052c196cec0?__gda__=exp=1558645609~hmac
######################################################################## 100.0%
==> Pouring deno-0.6.0.mojave.bottle.tar.gz
๐Ÿบ  /usr/local/Cellar/deno/0.6.0: 5 files, 48.7MB
 % deno version
deno: 0.6.0
v8: 7.6.53
typescript: 3.4.1

All 21 comments

For the moment you can install (the latest) deno from my gist:

brew install https://gist.githubusercontent.com/hayd/e6ea4568883d339b1787509cb74d0726/raw/deno.rb

https://github.com/Homebrew/homebrew-core/pull/35645

xlink: https://github.com/denoland/deno_install/issues/8

Reopening to track progress

does this build v0.2.6 still requires llvm when installing with brew?

  • Dependency 'llvm' may be unnecessary as it is provided by macOS; try to build this formula without it.

progress stucks for nearly 3 weeks

Yup. I will bump the version to 0.2.8 and see if anyone picks up the review...

It's _possible_ that it needs to be refactored to not use python tools/setup.py and python tools/build.py i.e. unroll it to explicit gn&ninja commands, but I'd rather avoid doing this and I have not been asked to do this. I think I have addressed the first reviewers concerns...

FYI you can use my basic brew formula to get 0.5.0 (or later):

brew install https://gist.githubusercontent.com/hayd/e6ea4568883d339b1787509cb74d0726/raw/deno.rb

@ry it sounds like we may need to resolve https://github.com/denoland/deno/issues/1474 to get it past the finish line.

Any tips on this? Specifically if no prebuilts are used (with a flag to setup or build) what would need to change in gn?

Ah, seen you've already replied. Sorry for the noise!

I wonder if https://github.com/Homebrew/homebrew-cask will accept a binary version of a command-line program.

Also, even if they don't accept these formulae, you could always just create a tap. Installing it from a tap is still a one-liner: brew install denoland/deno/deno or brew cask install denoland/deno/deno depending on whether you want to ship the binary.

Please give it a try! Below is a binary brew formula, though you may want to replace the test from the homebrew-core PR. That said, I think this needs a little tweaking to be a valid cask...

https://gist.github.com/hayd/e6ea4568883d339b1787509cb74d0726

brew install deno now works!

 % brew install deno
==> Downloading https://homebrew.bintray.com/bottles/deno-0.6.0.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/47/470aa4ad260593875fff68af034a574d447ddeeacb0a0f6ca5b99052c196cec0?__gda__=exp=1558645609~hmac
######################################################################## 100.0%
==> Pouring deno-0.6.0.mojave.bottle.tar.gz
๐Ÿบ  /usr/local/Cellar/deno/0.6.0: 5 files, 48.7MB
 % deno version
deno: 0.6.0
v8: 7.6.53
typescript: 3.4.1

Please give it a try! Below is a binary brew formula, though you may want to replace the test from the homebrew-core PR. That said, I think this needs a little tweaking to be a valid cask...

https://gist.github.com/hayd/e6ea4568883d339b1787509cb74d0726

that's mine

macross:~ ferried$ brew search deno
==> Formulae
denominator

==> Casks
code-notes                               code-notes
macross:~ ferried$ 

what should i do that i can searched it in brew,tap?

@ferried it's in mainline homebrew-core no need for cask/tap!

brew update might be required?

Can be closed now?

CC @ry

Getting error while installing deno using Homebrew on macOS

Error: No available formula with the name "deno"

@Gopaljeepurwar Did you run brew update?

Upgrading deno with homebrew from 0.17 to 0.18 on Mac OS 10.14.6 requires new very large dependencies:

==> Upgrading 1 outdated package: deno 0.17.0 -> 0.18.0 ==> Upgrading deno ==> Installing dependencies for deno: swig and llvm ... /usr/local/Cellar/swig/4.0.1: 723 files, 5.4MB /usr/local/Cellar/llvm/8.0.1: 6,807 files, 3.3GB

Fixed with 0.18.0_1. Thanks.

I am getting this error on Ubuntu 18.

Below are a few details:

 โœ˜ ๎‚ฐ ~ ๎‚ฐ brew install deno
deno: macOS is required.
Error: An unsatisfied requirement failed this build.
 โœ˜ ๎‚ฐ ~ ๎‚ฐ brew --version
Homebrew 2.2.11
Homebrew/linuxbrew-core (git revision 81b88; last commit 2020-03-30)
 ~ ๎‚ฐ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.4 LTS
Release:        18.04
Codename:       bionic
 ~ ๎‚ฐ brew info deno
deno: stable 0.36.0
Command-line JavaScript / TypeScript engine
https://deno.land/
Not installed
From: https://github.com/Homebrew/linuxbrew-core/blob/master/Formula/deno.rb
==> Dependencies
Build: llvm โœ˜, ninja โœ˜, rust โœ˜, xz โœ˜
Required: python@2 โœ˜, xz โœ˜
==> Requirements
Required: macOS is required โœ˜
==> Analytics
install: 8 (30 days), 140 (90 days), 214 (365 days)
install-on-request: 8 (30 days), 139 (90 days), 213 (365 days)
build-error: 0 (30 days)
Was this page helpful?
0 / 5 - 0 ratings

Related issues

xueqingxiao picture xueqingxiao  ยท  3Comments

ry picture ry  ยท  3Comments

justjavac picture justjavac  ยท  3Comments

CruxCv picture CruxCv  ยท  3Comments

zugende picture zugende  ยท  3Comments