denoland / deno

A modern runtime for JavaScript and TypeScript.

Home Page:https://deno.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install deno with homebrew

devcui opened this issue Β· comments

commented

My mac version is macOS Mojave.10.14.3

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

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

Homebrew/homebrew-core#35645

xlink: denoland/deno_install#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 #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
commented

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:

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)