You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows10安装Angular CLI7.1.4报错求助:readableHighWaterMark参数无效

Fixing Angular CLI 7.1.4 Installation Failures (Node v10.16.3 + npm 6.9.0 / Windows 10)

Hey there, let's break down what's happening here and fix it step by step:

First, let's separate the two messages you're seeing:

  • The fsevents warning: This is totally harmless! Fsevents is an optional dependency that only works on macOS systems. Since you're on Windows, npm correctly skips installing it—you can ignore this warning completely.
  • The ERR_INVALID_OPT_VALUE error: This is the real issue stopping your installation. Here are the most reliable fixes:

1. Downgrade npm to a compatible version

npm 6.9.0 has known compatibility quirks with older Angular CLI versions (like 7.1.4) when paired with Node.js 10.x. Let's roll back npm to version 6.4.1, which plays nicely with both:

  1. Open Command Prompt or PowerShell with administrator privileges
  2. Run this command to downgrade npm:
    npm install -g npm@6.4.1
    
  3. Once that finishes, try installing Angular CLI again:
    npm install -g @angular/cli@7.1.4
    

2. Clear npm cache and retry

Corrupted npm cache can cause weird, unexpected errors. Let's wipe it clean:

  1. Run the cache clean command:
    npm cache clean --force
    
  2. (Optional but recommended) Delete any leftover Angular CLI files from your global npm folder. The path will look like:
    C:\Users\<Your Username>\AppData\Roaming\npm\node_modules\@angular
  3. Re-run the Angular CLI installation command:
    npm install -g @angular/cli@7.1.4
    

3. Use Yarn instead of npm (alternative approach)

If the above methods don't work, Yarn often handles older package dependencies more smoothly. Give this a try:

  1. First install Yarn globally (if you don't have it already):
    npm install -g yarn
    
  2. Install Angular CLI 7.1.4 via Yarn:
    yarn global add @angular/cli@7.1.4
    

Verify your installation

Once you've tried one of the above methods, confirm success by running:

ng --version

You should see Angular CLI version 7.1.4 listed if everything worked.

内容的提问来源于stack exchange,提问作者Mansoor H

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.06 22:27:51