9
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Atomでscriptパッケージ入れてJavaScript実行しようとしたらnodeなんていないと言われた

Posted at

今までSublimeText使ってたもののちょっとAtomに浮気してます。んで、いろいろパッケージを入れてたところ掲題の件の現象。

入れたパッケージ

動かしてみた

  • こんなんでた

スクリーンショット 2015-07-11 19.00.14.png

直してみた

  • どうもnodeのPATHが見えてないっぽい。。。調べたらissueが切られてたので、やりとりを参考にinit Scriptを開いてPATHを追加してみる。
  • Atom -> Open Your Init Scriptを開いて自分のnodeのPATHを追加
process.env.PATH = ["/Users/rei_m/.nodebrew/current/bin", process.env.PATH].join(":");
  • Atom再起動で動くようになりました。もっとうまい解決法がある気がする。。。
9
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?