title: Cannot npm run dev. cross-env: not found . I have put path. however it says not find
body: <p>My project is not able to do  <code>npm run dev</code>.
  cross-env: not found .error happened.
  I changed my package.json.
  below</p>
  <pre><code>    &quot;private&quot;: true,
      &quot;scripts&quot;: {
          &quot;dev&quot;: &quot;npm run development&quot;,
          &quot;development&quot;: &quot;node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js&quot;,
          &quot;watch&quot;: &quot;npm run development -- --watch&quot;,
          &quot;watch-poll&quot;: &quot;npm run watch -- --watch-poll&quot;,
          &quot;hot&quot;: &quot;node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js&quot;,
          &quot;prod&quot;: &quot;npm run production&quot;,
          &quot;production&quot;: &quot;node node_modules/cross-env/dist/bin/cross-env.js  NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js&quot;
  </code></pre>
  <p>I have put path. However it still says &quot;not found&quot;.</p>
  <pre><code>$ sudo npm run dev
  </code></pre>
  <pre><code>@ dev /var/www/bb
  npm run development
  
  
  &gt; @ development /var/www/bb
  &gt; node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
  
  module.js:478
      throw err;
      ^
  
  Error: Cannot find module '/var/www/bb/node_modules/cross-env/dist/bin/cross-env.js'
      at Function.Module._resolveFilename (module.js:476:15)
      at Function.Module._load (module.js:424:25)
      at Module.runMain (module.js:611:10)
      at run (bootstrap_node.js:394:7)
      at startup (bootstrap_node.js:160:9)
      at bootstrap_node.js:507:3
  
  npm ERR! Linux 4.14.231-173.361.amzn2.x86_64
  npm ERR! argv &quot;/usr/bin/node&quot; &quot;/usr/bin/npm&quot; &quot;run&quot; &quot;development&quot;
  npm ERR! node v6.17.1
  npm ERR! npm  v3.10.10
  npm ERR! code ELIFECYCLE
  npm ERR! @ development: `node node_modules/cross-env/dist/bin/cross-env.js NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
  </code></pre>
  <pre><code>$ npm install webpack
  npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
  npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
  npm ERR! code EBADPLATFORM
  npm ERR! notsup Unsupported platform for fsevents@1.2.13: wanted {&quot;os&quot;:&quot;darwin&quot;,&quot;arch&quot;:&quot;any&quot;} (current: {&quot;os&quot;:&quot;linux&quot;,&quot;arch&quot;:&quot;x64&quot;})
  npm ERR! notsup Valid OS:    darwin
  npm ERR! notsup Valid Arch:  any
  npm ERR! notsup Actual OS:   linux
  npm ERR! notsup Actual Arch: x64
  
  npm ERR! A complete log of this run can be found in:
  
  </code></pre>