我是否必须安装用于使用NPM进行React的节点?
由于我的驱动器没有足够的空间,而且我没有进行任何后端项目,因此我最近卸载了Node JS。但是,当我尝试在使用React的VS代码终端上运行NPM命令时,我会收到消息:“'npm'不被识别为内部或外部命令, 可操作的程序或批处理文件
。行不通。
I had uninstalled Node js recently since I didn't have enough space in my drive and I was not doing any back-end projects. But when I tried to run npm commands on VS Code terminal for using react, I get the message:"'npm' is not recognized as an internal or external command,
operable program or batch file.". Should I re-install Node so that I can use npm again? If yes, should I delete all the npm files that are currently existing on my drive?
I have updated all the environmental variables but still it doesn't work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,由于NPM代表Node Package Manager,因此它确实使用了节点运行时。
要再次安装节点,您可以在Mac
BREW安装节点
上运行,如果您使用Windows,建议您只输入Node网站,下载并安装。如果您的磁盘已满,则可以删除其他内容,但是安装每个软件包的节点至关重要,因此这是您要删除的最后一件事。
Yes, since NPM stands for NODE Package Manager, it does use Node runtime.
To install node again you can run on your mac
brew install node
if you use windows, I suggest you just enter in node website, download it and install.If your disk is full, you can delete other things, but node is fundamental to install every package, so it's the last thing you wanna delete.