title: Laravel TALL npm run dev --openssl-legacy-provider is not allowed in NODE_OPTIONS
body: <p>I have just updated the npm packages of my Laravel project right at my MacOS system (I have been developing on Laravel Homestead since so long but npm didn't work for me),</p>
  <p><code>% npm list</code></p>
  <p><code>% npm update -D</code></p>
  <p><code>% npm list</code> to compare the versions differences</p>
  <p><code>% npm install</code></p>
  <p>also <code>brew update</code> and <code>brew upgrade</code> (on MacOS).</p>
  <p>So I got now the following versions:</p>
  <p><code>% npm -v</code>: 8.1.0</p>
  <pre><code>├── @fortawesome/fontawesome-free@5.15.4
  ├── @tailwindcss/forms@0.3.4
  ├── @tailwindcss/typography@0.4.1
  ├── alpinejs@3.4.2
  ├── axios@0.21.4
  ├── laravel-mix@6.0.35
  ├── lodash@4.17.21
  ├── postcss-import@14.0.2
  ├── postcss@8.3.11
  ├── resolve-url-loader@4.0.0
  ├── sass-loader@12.3.0
  ├── sass@1.43.4
  ├── sweetalert2@11.1.9
  └── tailwindcss@2.2.17
  </code></pre>
  <p>When I run <code>$ npm run dev</code> nothing happens and I get the following message:</p>
  <pre><code>% npm run dev
  
  &gt; dev
  &gt; npm run development
  
  
  &gt; development
  &gt; mix
  
  node: --openssl-legacy-provider is not allowed in NODE_OPTIONS
  </code></pre>
  <p>What do I do to fix it?</p>
  <h2>Workaround</h2>
  <p>I ran <code>$ npm run dev</code> right inside the Ubuntu Laravel Homestead and it worked! At the end I got the following messages:</p>
  <pre><code>webpack compiled successfully
  npm notice
  npm notice New major version of npm available! 7.12.1 -&gt; 8.1.2
  npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.1.2
  npm notice Run npm install -g npm@8.1.2 to update!
  npm notice
  </code></pre>
  <p>But I won't update, since I'm afraid I'll get the same error.</p>
  <p><em>Notice:</em></p>
  <p><code>%</code> =&gt; I am running on MacOS.</p>
  <p><code>$</code> =&gt; I am running on Ubuntu.</p>
  <h1>Update</h1>
  <p>I have just updated again everything with</p>
  <pre><code>% brew update
  % brew upgrade
  </code></pre>
  <p>Then I ran again</p>
  <p><code>% npm run dev</code> even if I still got <code>npm -v</code> =&gt; <code>8.1.0</code>, but my packages have been updated:</p>
  <pre><code>├── @fortawesome/fontawesome-free@5.15.4
  ├── @tailwindcss/forms@0.3.4
  ├── @tailwindcss/typography@0.4.1
  ├── alpinejs@3.5.0
  ├── axios@0.21.4
  ├── laravel-mix@6.0.39
  ├── lodash@4.17.21
  ├── postcss-import@14.0.2
  ├── postcss@8.3.11
  ├── resolve-url-loader@4.0.0
  ├── sass-loader@12.3.0
  ├── sass@1.43.4
  └── tailwindcss@2.2.19
  </code></pre>
  <p>and it's working normally again!</p>