2017-11-08 10 views
2

clojurescriptコンパイラのnpm-deps機能を使用して、リアクションヘルメットコンポーネント(https://github.com/nfl/react-helmet)を使用しようとしています。:npm-depsで "node"が見つかりません。

:compiler {:main "app.ui.core" 
:output-to "resources/public/js/compiled/app.js" 
:output-dir "resources/public/js/compiled/out" 
:asset-path "js/compiled/out" 
:source-map-timestamp true 
:preloads [print.foo.preloads.devtools] 
:closure-defines {goog.DEBUG true} 
:external-config {:devtools/config {:features-to-install :all}} 
:npm-deps {:react-helmet "5.2.0"}} 

私はスタートを実行してcljs REPLを得る: "DEV" ビルドの 関連スニペット!

(defn start! [] 
    (figwheel-sidecar.repl-api/start-figwheel! 
    (figwheel-sidecar.config/fetch-config) 
    "dev") 
    (figwheel-sidecar.repl-api/cljs-repl "dev")) 

そしてコンパイルはで失敗します:

---- Exception ---- 

    java.io.IOException : Cannot run program "node": error=2, No such file or directory 
    java.io.IOException : error=2, No such file or directory 

---- Exception Stack Trace ---- 

clojure.core/eval    core.clj: 3105 
user/start!    user.clj: 12 
figwheel-sidecar.repl-api/start-figwheel!   repl_api.clj: 26 
figwheel-sidecar.repl-api/start-figwheel!   repl_api.clj: 29 

(当然のNode.jsがインストールされている)で、ユーザNS内の関数。

+0

コンパイルを実行しているJavaプロセスでは、node.jsがインストールされているが、 'PATH'にはありません。それが事実かどうか確認してください。 –

+0

実際には/ usr/binのシンボリックリンクで修正されていません。また、〜/ .nvm/versions/node/v8.4.0/binにアクセスしていた端末セッションで実行されていたfigwheelもうまくコンパイルできました。あなたが答えとしてあなたのコメントを書くことができるなら、私はそれを受け入れるでしょう。 – fbielejec

答えて

0

コンパイルを実行するJavaプロセス環境のPATHでは、nodeバイナリは使用できません。 PATHに追加すると問題が解決するはずです。

関連する問題