如何在我的Laravel 5.7应用中安装vue-argon-design-system模板?

时间:2019-06-14 14:05:55

标签: laravel-5 npm responsive-design

在我想使用的Laravel 5.7 / Vuejs 2.6 / Vuex 3.1 / Bootstrap 4.3应用程序中 https://demos.creative-tim.com/vue-argon-design-system/模板 在它的文档中 https://demos.creative-tim.com/vue-argon-design-system/documentation/quick-start.html#quick-start 我读到了:

Argon Kit是作为Vue插件构建的,因此您只需导入即可使用。

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

我在我的resources / js / app.js中添加了以下行:

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

我不确定要将哪些文件复制到项目中,我尝试过 从/ vue-argon-design-system / src / plugins子目录复制文件:

/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

进入我项目的/ resources / js / plugins子目录

但是npm console命令引发错误:

    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

我尝试按照上述消息安装插件:

$ 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.
...

哪种方法可以将氩气安装到我的应用程序中?

谢谢!

0 个答案:

没有答案