简体   繁体   English

如何让 npm 在 PowerShell 中显示 output?

[英]How do I get npm to display output in PowerShell?

When I run any npm command such as npm -v or npm install, there is no output, nor does the terminal pause to indicate some kind of processing. When I run any npm command such as npm -v or npm install, there is no output, nor does the terminal pause to indicate some kind of processing. It just returns to input.它只是返回输入。 However, when I do the same in another terminal such as Git Bash, an output is displayed.但是,当我在另一个终端(例如 Git Bash)中执行相同操作时,会显示 output。 I have a preference for PowerShell on Windows and would like it to work there instead.我对 Windows 上的 PowerShell 有偏好,并希望它在那里工作。

Try to run PowerShell as administrator.尝试以管理员身份运行 PowerShell。

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

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