简体   繁体   中英

exec: “code”: executable file not found in $PATH

I am trying to download a vs code extension in order to be able to use cadence in vscode, but when I type:

flow version

and then:

flow cadence install-vscode-extension

into the command line, I keep getting this error: exec: "code": executable file not found in $PATH. What executable file am I supposed to have in order to download this extension?

Any help is appreciated. Thanks.

First do this in VS Code:

Once installed, open Visual Studio Code, open the command palette (press Shift+Command+P on macOS and Shift+Ctrl+P on Linux/Windows), then search for Install code command and press enter.

and then:

flow cadence install-vscode-extension

https://github.com/onflow/flow/blob/master/docs/vscode-extension.md#cadence-visual-studio-code-extension

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM