Jump to content

How to install vue-argon-design-system template into my Laravel 5.7 app?


Recommended Posts

Hello,
In my Laravel 5.7 / Vuejs 2.6 / Vuex 3.1/ Bootstrap 4.3  app I want to use 
https://demos.creative-tim.com/vue-argon-design-system/  template
and in it's docs 
https://demos.creative-tim.com/vue-argon-design-system/documentation/quick-start.html#quick-start
I read :

Quote

 

Argon Kit is built as Vue plugin so you can simply import it and use it.

import Vue from 'vue';
import Argon from '@/plugins/argon-kit'
Vue.use(Argon);


 

I added such lines in my resources/js/app.js :

import Vue from 'vue';
...
import Argon from '@/plugins/argon-kit'
Vue.use(Argon);

I am not sure which files have I to copy into my project, I tried 
to copy files from /vue-argon-design-system/src/plugins subdirectory :

/vue-argon-design-system/src/plugins$ ls -la
-rwxrwxrwx 1 root root  415 тра  5 15:11 argon-kit.js
-rwxrwxrwx 1 root root 1182 тра  5 15:11 globalComponents.js
-rwxrwxrwx 1 root root  297 тра  5 15:11 globalDirectives.js

into /resources/js/plugins subdirectory of my projectbut npm console command raised error : 

This dependency was not found:
* @/plugins/argon-kit in ./resources/js/app.js
To install it, you can run: npm install --save @/plugins/argon-kit
...

ERROR in ./resources/js/app.js
Module not found: Error: Can't resolve '@/plugins/argon-kit' in '/mnt/_work_sdb8/wwwroot/lar/Hostels2/resources/js'
 @ ./resources/js/app.js 12:0-40 13:8-13
 @ multi ./resources/js/app.js ./resources/sass/BS4/app.scss


I tried to install plugin as in message above: 

$ npm install --save @/plugins/argon-kit
npm ERR! code ENOLOCAL
npm ERR! Could not install from "@/plugins/argon-kit" as it does not contain a package.json file.
...

Which is valid way to install argon into my app?

Thanks!
 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.