title: npm install gets the error "must provide string spec"
body: <p>I try to execute an old react app which is created by myself two years ago. When I try to run the app via &quot;npm install&quot;, I've got the following error:</p>
  <pre><code>npm ERR! must provide string spec
  npm ERR! A complete log of this run can be found in:
  npm ERR!     C:\Users\tws80\AppData\Local\npm-cache\_logs\2022-01-09T21_00_13_180Z-debug.log
  </code></pre>
  <p>The dependencies of my package.json file:</p>
  <pre><code>  &quot;dependencies&quot;: {
      &quot;@material-ui/core&quot;: &quot;^4.9.7&quot;,
      &quot;@material-ui/icons&quot;: &quot;^4.9.1&quot;,
      &quot;@mdi/js&quot;: &quot;^5.0.45&quot;,
      &quot;@mdi/react&quot;: &quot;^1.3.0&quot;,
      &quot;@testing-library/jest-dom&quot;: &quot;^4.2.4&quot;,
      &quot;@testing-library/react&quot;: &quot;^9.4.1&quot;,
      &quot;@testing-library/user-event&quot;: &quot;^7.2.1&quot;,
      &quot;editor.formatOnPaste&quot;: true,
      &quot;editor.formatOnSave&quot;: true,
      &quot;husky&quot;: &quot;^4.2.3&quot;,
      &quot;i18next&quot;: &quot;^19.3.3&quot;,
      &quot;lint-staged&quot;: &quot;^10.0.8&quot;,
      &quot;prettier&quot;: &quot;^1.19.1&quot;,
      &quot;react&quot;: &quot;^17.0.2&quot;,
      &quot;react-dom&quot;: &quot;^17.0.2&quot;, 
      &quot;react-html-email&quot;: &quot;^3.0.0&quot;,
      &quot;react-i18next&quot;: &quot;^11.3.3&quot;,
      &quot;react-intl&quot;: &quot;^4.1.1&quot;,
      &quot;react-router-dom&quot;: &quot;^5.1.2&quot;,
      &quot;react-scripts&quot;: &quot;^5.0.0&quot;
    }
  </code></pre>
  <p>My current node and npm version:</p>
  <pre><code>node -v v16.13.1
  npm -v 8.1.2
  </code></pre>
  <p>I suppose this error is due to the old dependencies but I don't find any useful workaround to solve this problem. After I've removed node_modules I still can re-install node_modules.
  Thank you for your help.</p>