简体   繁体   English

如何在vscode上使用npm命令

[英]How to use npm command on vscode

I am new to Vscode when m trying to install it it shows: PS C:\Users\manim> node -v node: The term 'node' is not recognized as the name of a cmdlet, function, script file, or operable program.我是 Vscode 的新手,当我尝试安装它时显示:PS C:\Users\manim> node -v node: 术语“节点”未被识别为 cmdlet、function、脚本文件或可运行程序的名称. Check the spelling of the name, or检查名称的拼写,或
if a path was included, verify that the path is correct and try again.如果包含路径,请验证路径是否正确并重试。 At line:1 char:1在行:1 字符:1

  • node -v节点-v
  •  + CategoryInfo: ObjectNotFound: (node:String) [], CommandNotFoundException + FullyQualifiedErrorId: CommandNotFoundException

PS C:\Users\manim> npm -v npm: The term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program. PS C:\Users\manim> npm -v npm: The term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.检查名称的拼写,或者如果包含路径,请验证路径是否正确并重试。 At line:1 char:1在行:1 字符:1

  • npm -v npm -v
  •  + CategoryInfo: ObjectNotFound: (npm:String) [], CommandNotFoundException + FullyQualifiedErrorId: CommandNotFoundException

Judging by the errors, I'd say you just don't have node installed.从错误来看,我会说你只是没有安装节点。 Try running those commands in a command prompt (you can get one up by pressing the windows key and R together, then typing cmd and pressing enter).尝试在命令提示符下运行这些命令(您可以通过同时按下 windows 键和 R 来启动一个,然后键入 cmd 并按回车键)。 If it says the same thing, make sure you've got Node installed.如果它说同样的话,请确保您已经安装了 Node。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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