התקנת תבנית לVUE
-
יש תבניות אדמין עבור הVUE.
אבל כשאני מנסה להתקין אותם הוא כותב לי שאין לי את התיקיה של node-modules
אז יצרתי פרוייקט חדש וניסיתי לשפוך לתיקיה את כל התיקיות והקבצים של התבנית,
אבל זה יוצר סתירות. ולא מצליח להריץ את הפרוייקט.
כנראה פספסתי משהו בטכניקה.תודה.
-
@chagold לא הבנתי מה ניסית ומה קיבלת. נסה לכתוב יותר ברור מה עשית ואיזה שגיאה קיבלת.
דוגמה:- הורדתי קובץ זיפ של הפרוייקט / עשיתי
git clone - נסיתי להתקין אותה על ידי פקודה
super cool command - קיבלתי שגיאה:
Error: Something absolutely catastrophic happened💥
@yossiz אמר בהתקנת תבנית לVUE:
אותה
לקחתי את התבנית הזו.
הורדתי עם clone, נכנסתי ל-my-project/laravel, הרצתי npm install.הפלט:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) added 1012 packages from 487 contributors and audited 1081 packages in 59.294s found 825 vulnerabilities (808 low, 6 moderate, 11 high) run `npm audit fix` to fix them, or `npm audit` for details(עשיתי את ה-fix לא נראה לי שהרס משהו)
הרצת npm run build או npm run start זורקת שגיאה
npm ERR! missing script: build npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\a\AppData\Roaming\npm-cache\_logs\2021-03-12T12_35_19_585Z-debug.logתודה רבה.
- הורדתי קובץ זיפ של הפרוייקט / עשיתי
-
@yossiz אמר בהתקנת תבנית לVUE:
אותה
לקחתי את התבנית הזו.
הורדתי עם clone, נכנסתי ל-my-project/laravel, הרצתי npm install.הפלט:
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) added 1012 packages from 487 contributors and audited 1081 packages in 59.294s found 825 vulnerabilities (808 low, 6 moderate, 11 high) run `npm audit fix` to fix them, or `npm audit` for details(עשיתי את ה-fix לא נראה לי שהרס משהו)
הרצת npm run build או npm run start זורקת שגיאה
npm ERR! missing script: build npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\a\AppData\Roaming\npm-cache\_logs\2021-03-12T12_35_19_585Z-debug.logתודה רבה.
עכשיו הרצתי npm run dev
הפלט רציתילכתוב להלן אבל הוא מדי ארוך כתבתי ההתחלה.הוא חזר ע"ע גם אחרי שעשיתי npm update
> @ dev C:\Users\a\admin-vue1\coreui-free-vue-laravel-admin-template\laravel > npm run development > @ development C:\Users\a\admin-vue1\coreui-free-vue-laravel-admin-template\laravel > cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js 10% building 2/5 modules 3 active ...free-vue-laravel-admin-template\laravel\node_modules\style-loader\lib\addStyles.jsBrowserslist: caniuse-lite is outdated. Please run next command `npm update` 98% after emitting SizeLimitsPlugin ERROR Failed to compile with 69 errors 14:43:25 These dependencies were not found: * @coreui/icons in ../coreui/src/assets/icons/icons.js, ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!../coreui/src/views/icons/Flags.vue?vue&type=script&lang=js& and 4 others * @coreui/utils/src in ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!../coreui/src/views/charts/MainChartExample.vue?vue&type=script&lang=js&, ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!../coreui/src/views/charts/CChartLineSimple.vue?vue&type=script&lang=js& and 2 others * @coreui/vue in ../coreui/src/main.js * @coreui/vue-chartjs in ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!../coreui/src/views/charts/MainChartExample.vue?vue&type=script&lang=js&, ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader- -
עכשיו הרצתי npm run dev
הפלט רציתילכתוב להלן אבל הוא מדי ארוך כתבתי ההתחלה.הוא חזר ע"ע גם אחרי שעשיתי npm update
> @ dev C:\Users\a\admin-vue1\coreui-free-vue-laravel-admin-template\laravel > npm run development > @ development C:\Users\a\admin-vue1\coreui-free-vue-laravel-admin-template\laravel > cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js 10% building 2/5 modules 3 active ...free-vue-laravel-admin-template\laravel\node_modules\style-loader\lib\addStyles.jsBrowserslist: caniuse-lite is outdated. Please run next command `npm update` 98% after emitting SizeLimitsPlugin ERROR Failed to compile with 69 errors 14:43:25 These dependencies were not found: * @coreui/icons in ../coreui/src/assets/icons/icons.js, ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!../coreui/src/views/icons/Flags.vue?vue&type=script&lang=js& and 4 others * @coreui/utils/src in ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!../coreui/src/views/charts/MainChartExample.vue?vue&type=script&lang=js&, ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!../coreui/src/views/charts/CChartLineSimple.vue?vue&type=script&lang=js& and 2 others * @coreui/vue in ../coreui/src/main.js * @coreui/vue-chartjs in ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!../coreui/src/views/charts/MainChartExample.vue?vue&type=script&lang=js&, ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader- -
@chagold הורדתי והפעלתי. הכל עובד לי.
יש 2 חלקים. צד השרת (תקיית laravel) וצד הלקוח (תקיית coreui).
בתוך תקיית coreui תריץ:
npm install npm run serveבתוך תקיית laravel תריץ:
composer install npm install php artisan key:generate php artisan jwt:secret php artisan migrate:refresh --seed php artisan serveואז תיגש ל: http://localhost:8080
שם משתמש:
admin@admin.com
סיסמה:passwordאה, שכחתי לציין שצריך ליצור קובץ
.envוהגדיר שם את פרטי הגישה ל-DB. -
@chagold הורדתי והפעלתי. הכל עובד לי.
יש 2 חלקים. צד השרת (תקיית laravel) וצד הלקוח (תקיית coreui).
בתוך תקיית coreui תריץ:
npm install npm run serveבתוך תקיית laravel תריץ:
composer install npm install php artisan key:generate php artisan jwt:secret php artisan migrate:refresh --seed php artisan serveואז תיגש ל: http://localhost:8080
שם משתמש:
admin@admin.com
סיסמה:passwordאה, שכחתי לציין שצריך ליצור קובץ
.envוהגדיר שם את פרטי הגישה ל-DB.
שלום! נראה שהשיחה הזו מעניינת אותך, אבל עדיין אין לך חשבון.
נמאס לכם לגלול בין אותם הפוסטים בכל ביקור? כשנרשמים לחשבון, תמיד תחזרו בדיוק למקום שבו הייתם קודם, ותוכלו לבחור לקבל התראות על תגובות חדשות (בין אם במייל, ובין אם בהתראת פוש). תוכלו גם לשמור סימניות ולפרגן ב-upvote לפוסטים כדי להביע הערכה לחברי קהילה אחרים.
בעזרת התרומה שלך, הפוסט הזה יכול להיות אפילו טוב יותר 💗
הרשמה התחברות
