4
5

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.

「Vueの設定を開く」が開かないとお嘆きの貴兄に

Last updated at Posted at 2019-01-31

68747470733a2f2f71696974612d696d6167652d73746f72652e73332e616d617a6f6e6177732e636f6d2f302f35313131362f62396661383431322d376535302d326566382d393739312d3765643463633364376138352e706e67.png

画面右上の「Vueの設定を開く」を押しても何も起きません...

そこでvue uiのコンソールを見てみるとエラーが出てました。

Could not open vue.config.js in the editor.
The editor process exited with an error: spawn code ENOENT.

Unable to open '/Users/qoAop/Desktop/my-app/vue.config.js' spawn code ENOENT.
Try setting the EDITOR env variable. More info: https://github.com/yyx990803/launch-editor

むむむ

対応方法

PATHにVisual Studio Codeのパスを指定すればOKです。

# Add Visual Studio Code (code)
export PATH="/Applications/Visual Studio Code.app/Contents/Resources/app/bin:$PATH"

PATHを設定した状態で「Vueの設定を開く」で無事vue.config.jsが開きました。
コンソールにも下記のようにエラーは出力されませんでした。

open /Users/qoAop/Desktop/my-app/vue.config.js
Opening /Users/qoAop/Desktop/my-app/vue.config.js...
4
5
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
4
5

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?