关于npm:mac-vscode不能识别-npm

7次阅读

共计 374 个字符,预计需要花费 1 分钟才能阅读完成。

配置 VScode

关上 settings.json 文件:

command’+‘,’键

而后输出:shell,如下图,点击批改:

settings.json 文件次要内容如下(次要是减少‘.osx’和‘.linux’结尾的属性值):

{
    "editor.fontSize": 14,
    "files.autoSave": "onFocusChange",
    "git.autofetch": true,
    "window.zoomLevel": 0,
    "terminal.integrated.shell.osx": "/bin/zsh",
    "terminal.integrated.automationShell.linux": "/bin/zsh",
    "workbench.colorTheme": "Dark Chrome DevTools"
}

最初重启命令行,即可在 VSCode 运行 npm 等命令

正文完
 0