Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • 11
    --no-optional completely nailed it for me (@5.4.1)!
    – sunny moon
    Commented Sep 8, 2017 at 16:09
  • 24
    if you have opened VSCode then close it and try running npm command it will be installed definitely, downgrading is not the solution. Commented Oct 10, 2019 at 5:46
  • 6
    Closing down the VS Code and ran npm i from outside worked for me. Commented Nov 16, 2019 at 22:48
  • Its fixed in modern versions.
    – Alex78191
    Commented Apr 3, 2021 at 14:46
  • I have npm version 6.0 and just restarting VScode worked for me. Commented Mar 27, 2022 at 5:19