我是否必须安装用于使用NPM进行React的节点?

发布于 2025-01-28 04:27:28 字数 136 浏览 1 评论 0原文

由于我的驱动器没有足够的空间,而且我没有进行任何后端项目,因此我最近卸载了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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

屋顶上的小猫咪 2025-02-04 04:27:28

是的,由于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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文