我正在使用 M1 Macbook Pro 并想为 rails webapp 安装 therubyracer 和 libv8。但由于下面描述的错误,我无法这样做。互联网上有几种解决方案,但没有一个对我有用。
操作系统:macOS Big Sur v11.1.
如果有人可以帮助我,那将非常有帮助。
日志:
? ruby -v
ruby 2.5.5p157 (2019-03-15 revision 67260) [-darwin20]
? bundle -v
Bundler version 1.17.3
? brew -v
Homebrew 2.7.5
Homebrew/homebrew-core (git revision e04a30; last commit 2021-01-20)
Homebrew/homebrew-cask (git revision d128de; last commit 2021-01-20)
? uname -a
Darwin Vaibhavs-MacBook-Pro.local 20.2.0 Darwin Kernel Version 20.2.0: Wed Dec 2 20:40:21 PST 2020; root:xnu-7195.60.75~1/RELEASE_ARM64_T8101 arm64
? brew search v8
==> Formulae
v8 ? v8@3.15 …Run Code Online (Sandbox Code Playgroud) 我尝试在 Github-Pages、Firebase、Netlify 上部署我的 django-react 应用程序。使用 gh-pages 在 github-pages 上部署时,出现此错误
sh: 1: gh-pages: not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! blog_frontend@0.1.0 deploy: `gh-pages -d build`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the blog_frontend@0.1.0 deploy script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: …Run Code Online (Sandbox Code Playgroud) 我想一直支持 es6 语法和 javascript 的新功能到 IE11。我在我的项目中使用了 gulp。有什么办法可以让新的 javascript 被转译以支持旧浏览器?
apple-m1 ×1
ecmascript-6 ×1
firebase ×1
github-pages ×1
gulp ×1
javascript ×1
libv8 ×1
netlify ×1
react-router ×1
reactjs ×1
therubyracer ×1