honvid / laravel-vue-element-admin-starter Goto Github PK
View Code? Open in Web Editor NEWframework used the laravel5.8, vue-element-admin, just a starter.
License: MIT License
framework used the laravel5.8, vue-element-admin, just a starter.
License: MIT License
我在ubuntu下建立專案後,執行npm run dev時出現了錯誤訊息如下圖所示
https://user-images.githubusercontent.com/17357086/65478174-61a58980-debb-11e9-9fe5-c07e2b0faec8.jpg
我使用你的填坑笔记能安装成功,但是图标这块还是有问题,Element-UI Icons能够正常显示,但是vue-element-admin自带的icons->svg图标无法显示,望指点。
laravel:5.8
node:v12.4.0
npm:6.9.0
laravel-mix:4.0.7
登录页面能正常显示,登录接口返回数据也正常。
登录后无法正常跳转到主页,怎么回事呀?
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'json null, scope
int null, created_at
timestamp null, updated_at
timestamp' at line 1 (SQL: create table abilities
(id
int unsigned not null auto_increment primary key, name
varchar(191) not null, title
varchar(191) null, entity_id
int unsigned null, entity_type
varchar(191) null, only_owned
tinyint(1) not null default '0', options
json null, scope
int null, created_at
timestamp null, updated_at
timestamp null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')
是在element-admin的main.js里面吗?
passport的客户端管理只支持项目内部调用,所以无奈也只能讲element集成到laravel里面了。
能否借鉴下您的代码,学习学习?
laradock@543fd7ede264:/var/www/datacenter-admin$ npm run dev
> @ dev /var/www/datacenter-admin
> npm run development
> @ development /var/www/datacenter-admin
> NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
98% after emitting SizeLimitsPlugin
ERROR Failed to compile with 1 errors 8:26:03 AM
This dependency was not found:
* /var/www/datacenter-admin/resources/backend/main.js in multi ./resources/backend/main.js
To install it, you can run: npm install --save /var/www/datacenter-admin/resources/backend/main.js
Asset Size Chunks Chunk Names
/js/main.js 3.93 KiB /js/main [emitted] /js/main
ERROR in multi ./resources/backend/main.js
Module not found: Error: Can't resolve '/var/www/datacenter-admin/resources/backend/main.js' in '/var/www/datacenter-admin'
@ multi ./resources/backend/main.js /js/main[0]
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @ development: `NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @ development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/laradock/.npm/_logs/2020-02-13T08_26_03_498Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @ dev: `npm run development`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @ dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/laradock/.npm/_logs/2020-02-13T08_26_03_531Z-debug.log
不知道究竟是哪里出错了,求大佬指教。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.