Note: Bundles are currently large (approximately
npmwill not provide accurate progress of the download. This may take several minutes, depending on your connection. Be patient. In most cases, the installation is not hanging and will finish.
OPAM is the native package manager for OCaml. If you come from OCaml and don't have npm/yarn, you can optionally install this way, but be careful!
If you're on Windows, please see https://github.com/reasonml/reasonml.github.io/issues/195.
opam update eval $(opam config env) opam install reason.3.2.0 merlin.2.5.4
If your installation fails, it might be because you're on npm 5.4.0 (
npm --version). There was a known bug in npm that's fixed in 5.4.2. Upgrade
npm and things should work.
If that fails, try https://github.com/reasonml/reasonml.github.io/pull/157. If that succeeds, please upvote that issue. We aren't sure it's the adequate fix in the meantime.
Finally, if things still don't work, please file an issue at https://github.com/reasonml/reason-cli/issues. Sorry for the trouble.
- 如果使用 Windows，目前編輯器工具鍊尚未穩定。請協助我們改善 https://github.com/reasonml/reasonml.github.io/issues/195。謝謝！
- 確認重新啟動編輯器。某些無法取得新的 shell 環境（包含了新安裝的二進制檔）。
- 試試下列指令： ```readlink
which ocamlmerlin refmt ocamlmerlin-reason```` 這會出現三個路徑包含這些字串reason-cli
- 檢查 Merlin 版本：
ocamlmerlin -version這會顯示 “The Merlin toolkit version 2.5.x, for Ocaml 4.02.3”。不是 OCaml 4.03，也不是 4.04，等等。
Make sure you've built your project at least once; the diagnosis doesn't pick up until after that. The build command varies by project, but is frequently
npm run build (which usually calls
bsb -make-world under the hood).
If you're on Visual Studio Code, make sure you open the editor at the project's root (where
bsconfig.json are). You can do so, for example, by invoking
code . in the terminal at the root.