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

配置 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 等命令

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理