Wednesday, 24 May 2017

NPM error during loading dependency in webpack.mix while running "npm run watch" on ubuntu

I'm having a ubuntu server and I'm trying npm run watch I'm facing difficulty with npm dependency package: metismenu

I'm using the package in my stellar something like this:

require('./bootstrap');

window.metisMenu= require('metisMenu');

window.Vue = require('vue');

I've installed metismenu by typing npm install --save metismenu now I'm getting error:

 ERROR  Failed to compile with 1 errors                                                                                                                      11:18:56 AM

This dependency was not found:

* metisMenu in ./resources/assets/js/stellar.js

To install it, you can run: npm install --save metisMenu                                                                                                               
    Asset       Size  Chunks                    Chunk Names
   /js/stellar.js    1.42 MB       0  [emitted]  [big]  /js/stellar
   /js/login.js    1.13 MB       1  [emitted]  [big]  /js/login
   /js/app.js    1.12 MB       2  [emitted]  [big]  /js/app
mix-manifest.json  138 bytes          [emitted]

Same code I'm using in localhost and is working properly, please guide me.



via Nitish Kumar

No comments:

Post a Comment