【问题标题】:npm and git command lines are very slow on Windows; how can I sort out why?npm 和 git 命令行在 Windows 上非常慢;我怎样才能弄清楚为什么?
【发布时间】:2018-12-19 07:03:36
【问题描述】:

我怀疑是 Symantec Endpoint Protection,但我所掌握的证据尚无定论,支持人员似乎认为这一切都很好。例如:

$ date && npm test && date
Thu Aug 24 13:58:37 PDT 2017

> gamma-listener@0.2.0 test C:\work\gamma-listener
> lab -Rv  -e development -r console ./test/unit

...

9 tests complete (2 skipped)
Test duration: 267 ms
Assertions count: 24 (verbosity: 2.67)
No global variable leaks detected

Thu Aug 24 13:58:53 PDT 2017

所以测试用了

我怎样才能解决需要这么长时间的问题?我可以证明 SEP 导致了经济放缓吗?

Win 10, bash 4.3.46, Node 6.11.2, npm 3.10.10

我再过一个月左右都无法升级 Node。有点怀疑这是问题所在。

【问题讨论】:

  • @JackDelson haha​​hah GNU 很棒!

标签: node.js windows git bash npm


【解决方案1】:

我也遇到过同样的问题。尝试禁用赛门铁克。对我来说,命令是:"%ProgramFiles(x86)%\Symantec\Symantec Endpoint Protection\smc.exe" -stop

在 Powershell 中,我喜欢测量 git status 的性能,包括更改之前和之后:Measure-Command { git status }

【讨论】:

    猜你喜欢
    • 2023-04-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-11-17
    • 1970-01-01
    • 2011-12-19
    • 2014-04-09
    相关资源
    最近更新 更多