vendredi 20 novembre 2015

Running Gulp with Elixir throws module.js:340 throw err; Error: Cannot find module

I have been trying all evening to sort this issue, out after running npm update.

Anyways I updated my package.json file with the latest versions:

    {
      "private": true,
      "devDependencies": {
        "gulp": "^3.9.0"
      },
      "dependencies": {
        "laravel-elixir": "^4.0.1"
      }
    }

Anyways finally it after running npm installfinally got it to run with no errors.

But then running gulp presented me with another....

  module.js:340
         throw err;
        ^
         Error: Cannot find module 'clone-stats......

The above was run on the host machine, which before the update worked.

Any way so thought I would try it within the vm, and got a lot further and the code run, until near the end and the gives me this error...

       events.js:141
              throw er; // Unhandled 'error' event
             ^
            Error: undefined:299:58: missing '}'
          at error    (/home/vagrant/Websites/sitename/node_modules/css/lib/parse/index.js:62:15)

Any ideas what happening or how to solve.

One thing i have noticed is that within my node_modules folder there used to be just the gulp and laravel-elixir folders but now it seems all the dependencies are being install within the root of the node_modules folder, might be nothing but best mention.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire