Node.JS NPM 不适用于 Windows

编程入门 行业动态 更新时间:2024-10-25 00:36:14
本文介绍了Node.JS NPM 不适用于 Windows的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我刚刚安装了最新版本的 nodejs,虽然我可以让它很好地运行 js 文件,但我无法让 npm 做任何事情.

I just installed the latest version of nodejs, and while I can get it to run js files just fine, I can't get npm to do anything.

如果我打开 node.exe,它会出现一个提示,然后我分别尝试了以下每一个,但没有一个工作:

If I open the node.exe, it brings up a prompt, then I separately tried each of the following and none of them work:

> node npm install socket.io > npm install socket.io > help > node help

以上所有结果都只返回..."行,然后我输入的每件事之后,我都会得到另一行...".

ALL of the above result in nothing but the line "..." to be returned, then every thing I type in after that, I just get another line of "...".

这非常令人沮丧.我做错了什么?

This is extremely frustrating. What am I doing wrong?

推荐答案

打开 node.exe 将打开读取-评估-打印循环 (REPL).试试吧:

Opening node.exe will bring up the Read–eval–print loop (REPL). Try just:

c:\users\windowslogin>npm install socket.io

更多推荐

Node.JS NPM 不适用于 Windows

本文发布于:2023-11-28 19:43:31,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1643710.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:不适用于   JS   Node   Windows   NPM

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!