Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

afletcher's avatar

npm run dev - Unable to locate dependency

I'm running laravel on homestead, and I'm trying to install a vue dependency via NPM.

npm version 6.7.0

I have successfully installed the module via NPM, however when I try to reference the module in my VUE file upon compiling it I get "module is not found error"

This dependency was not found:

* vuetify-material-dashboard in ./resources/js/app.js

To install it, you can run: npm install --save vuetify-material-dashboard

The module is there, and other modules installed are loaded correctly. (app.js)

import Vue from 'vue';
import VueRouter from 'vue-router';
import routes from './routes';
import VueResource from 'vue-resource';
import { TableComponent, TableColumn } from 'vue-table-component';
import Vuetify from 'vuetify';
import Card from 'vuetify-material-dashboard';

I have removed all node modules and reinstalled, deleted the package.json, ssh into the box environment / performed this all locally but the error still persists.

0 likes
2 replies
siangboon's avatar

it stated clearly, you imported the vuetify-material-dashbord in your ./resources/js/app.js but the system not able to find the dependency.... hence asked you to run the command to install...

npm install --save vuetify-material-dashboard

after running npm install, the module will be add into package.json file, hence you should check package.json not app.js. app.js is where you import your libraries for your app to use and compile.

tykus's avatar

I don't believe vuetify-material-dashboard is intended to be used as the OP is attempting to use it. It appears to be a project skeleton that you would use to bootstrap your own work. In any case, it does not appear to export Card or any other component.

Please or to participate in this conversation.