0
0

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.

apmで不用意にsudoでinstallしない

0
Last updated at Posted at 2015-05-22

Uncaught Error: ENOENT: no such file or directory

UbuntuでAtomに色々とパッケージを入れていたら、こんなエラーが出た。
Uncaught Error: ENOENT: no such file or directory, open '/Users/neilli/.atom/packages/save-session/projects/project.json'

エディタを一回閉じて開きなおした時、直前ファイルを開いておいて欲しいので入れた、「save-session」というpackageでエラーが出ている。

原因: "sudo apm install --stars" してた

Windowsでは確認できない現象で、Ubuntuでは環境によってエラー出たり出なかったりで、なんでだろうと思っていた。
しかしどうってことはなく、エラー出る環境ではsudoを使って install 実行していたので、作成されたpackageのフォルダが書き込み不可になっていただけだった。

対処: save-sessionをsudoなしで再インストール

一旦save-sessionをアンインストールする
sudo apm uninstall save-session

もう一度、今度はsudoを付けずにインストール
apm install save-session

なんとなくsudoしていたけど、(自分の使っている範囲では)動かなくなるpackageもなかったので、今後は付けずに操作する。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?