-
Notifications
You must be signed in to change notification settings - Fork 655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There are no commands defined in the "jwt" namespace #143
Comments
@c-myers1 Sorry the doc is outdated. You should use the latest version on https://github.com/tuandm/laravue/blob/master/README.md
I will update the document on doc.laravue.dev |
I actually went past this after posting by "composer require tymon/jwt-auth". Currently at "yarn run dev" and its prompted me to update webpack-cli and now downloading stuff; currently at 687/1297. I actually started with these instructions you posted but npm resulted in far too many errors so I followed your advise in the documentation "# Install dependency - we recommend using Yarn instead of NPM since we get errors while using NPM" Will it fail with jwt or must I switch to passport? If I switch to passport, can I use yarn for the remaining instructions to avoid the npm issues? |
It eventually didn't work, errors below. vagrant@homestead:~/code/laravue$ yarn run dev
One CLI for webpack must be installed. These are recommended choices, delivered as separate packages:
npm ERR! A complete log of this run can be found in: |
@c-myers1 At this time, the npm issue has been fixed. You should be able to use Note: The lock file is generated by npm, you won't get warnings if you use it. If you are using the latest code from github, you must go with Laravel passport which was integrated from Laravue@0.9.0. On the contrary, you have to go with JWT package. If Laravel passport doesn't matter to you, I suggest you go with the latest code and npm. Regards |
Thanks. Given the type of errors, it might be permission related. The command "composer create-project tuandm/laravue" actually gives the message "[ErrorException] mkdir(): Permission Denied." I end up running all the commands with sudo (and I get warnings against this down the line.) Will delete the folder and try afresh. |
@c-myers1 Please confirm if your issue is fixed or not. |
No its not. I have that very long list of errors i pasted 2 posts ago. A shame as the admin panel looks very good and I would love to get it working. |
@c-myers1 Sorry your errors confuse me. Can you reinstall the latest Laravue after clear npm/yarn cache and send here the error you get? |
I suppose with the —force flag? Will retry. However, I noticed every other laravel app created with composer has rwxrwxrwx permissions but only Laravue gets created with r-xr-xr-x. Could the errors be due to this? Is there a flag to run composer with or I have to manually change permissions? |
I guess it shouldn’t since the current setting gives the owner full rwx. |
@c-myers1: Yes, it shouldn't be full rwx in any case. Can you please take the screenshot or post full error messages here? I'm just curious :). |
I just ran yarn cache clear and npm cache verify. Then composer create-project tuandm/laravue. I get the error [ErrorException] mkdir(): Permission denied so I used sudo for this and everything else (despite a warning to avoid sudo) since I'm just evaluating. Next, the passport install failed due to this error: There are no commands defined in the "passport" namespace So I did the following: This worked, overwriting the keys. Then sudo npm install; results from screen pasted as below. Please let me know if the log files will help. Also of course if any of the steps I've taken prior to this is wrong, do let me know. Thanks ============================================= > husky@3.1.0 install /home/vagrant/code/laravue/node_modules/husky husky > Setting up git hooks > node-sass@4.13.1 install /home/vagrant/code/laravue/node_modules/node-sass Unable to save binary /home/vagrant/code/laravue/node_modules/node-sass/vendor/linux-x64-72 : Error: EACCES: permission denied, mkdir '/home/vagrant/code/laravue/node_modules/node-sass/vendor' > core-js@2.6.11 postinstall /home/vagrant/code/laravue/node_modules/babel-polyfill/node_modules/core-js Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) > core-js@2.6.11 postinstall /home/vagrant/code/laravue/node_modules/babel-runtime/node_modules/core-js Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) > ejs@2.7.4 postinstall /home/vagrant/code/laravue/node_modules/ejs Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/) > core-js@3.6.4 postinstall /home/vagrant/code/laravue/node_modules/core-js Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) > husky@3.1.0 postinstall /home/vagrant/code/laravue/node_modules/husky Thank you for using husky! > node-sass@4.13.1 postinstall /home/vagrant/code/laravue/node_modules/node-sass Building: /usr/bin/node /home/vagrant/code/laravue/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= npm ERR! code ELIFECYCLE npm ERR! A complete log of this run can be found in: |
Hi @c-myers1
I think you have started with Can you please retry with no sudo and post the full error log here? Just note that Laravel Passport has been removed in latest version of Laravue. We use Laravue Sanctum instead. |
Hi, Given your move to Laravel Sanctum, and the readme.md updated 5 days ago, I skipped this step: php artisan passport:install I got the following in the console after running npm install: ========================================= > husky@3.1.0 install C:\xampp2\htdocs\laravue\node_modules\husky husky > Setting up git hooks > node-sass@4.13.1 install C:\xampp2\htdocs\laravue\node_modules\node-sass Cached binary found at C:\Users\user1\AppData\Roaming\npm-cache\node-sass\4.13.1\win32-x64-72_binding.node > core-js@2.6.11 postinstall C:\xampp2\htdocs\laravue\node_modules\babel-polyfill\node_modules\core-js Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) > core-js@2.6.11 postinstall C:\xampp2\htdocs\laravue\node_modules\babel-runtime\node_modules\core-js > ejs@2.7.4 postinstall C:\xampp2\htdocs\laravue\node_modules\ejs Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/) > core-js@3.6.4 postinstall C:\xampp2\htdocs\laravue\node_modules\core-js > husky@3.1.0 postinstall C:\xampp2\htdocs\laravue\node_modules\husky Thank you for using husky! > node-sass@4.13.1 postinstall C:\xampp2\htdocs\laravue\node_modules\node-sass Binary found at C:\xampp2\htdocs\laravue\node_modules\node-sass\vendor\win32-x64-72\binding.node added 1590 packages from 1833 contributors and audited 24445 packages in 48.278s 34 packages are looking for funding ================================== I then do npm run dev but nothing shows up at http://localhost:8000. npm run dev returns to the console cursor which is I dont believe is normal when its serving files. Following are the last lines I see from running npm run dev. ======================================== [webpack.Progress] 100%
fonts/vendor/element-ui/lib/theme-chalk/element-icons.ttf?4520188144a17fb24a6af28a70dae0ce 54.6 KiB [emitted] ================ |
@c-myers1 Did you open http://localhost:8000 using IE? Currently Laravue doesn't support IE and we are fixing this. Can you please try with Chrome/Firefox? |
ok thanks very much, it's working now. any reason you removed the datatables sample from this version? |
@c-myers1 It's still there: https://github.com/tuandm/laravue/blob/master/database/seeds/DatabaseSeeder.php :). |
Following the install steps, I'm stuck at
php artisan jwt:secret
It gives the error above. Googling, I came across this fix but it results in more errors.
How can I fix?
The text was updated successfully, but these errors were encountered: