从 Visual Studio 代码终端找不到 npm [英] npm not found from Visual Studio code terminal

查看:222
本文介绍了从 Visual Studio 代码终端找不到 npm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试从 VS Code 终端运行npm"时,出现错误术语‘npm’未被识别为 cmdlet、函数、脚本文件或可运行的程序."这曾经在我以前的笔记本电脑中工作过,所以我似乎缺少配置或扩展?

When I try to run "npm" from VS Code terminal, I get the error "The term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program." This used to work in my previous laptop, so it seems I'm missing a configuration or extension?

推荐答案

请阅读有关如何在您的机器上安装 npm 和 node 的文档:https://code.visualstudio.com/docs/nodejs/nodejs-tutorial

Please read the documentation on how to install npm and node on your machine: https://code.visualstudio.com/docs/nodejs/nodejs-tutorial

这篇关于从 Visual Studio 代码终端找不到 npm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆