RikuK's avatar
Level 1

passport - "npm run dev" fails

Hello. I'm using Laravel 5.7 and trying to implement OAuth2 using passport.

I followed the documentation on https://laravel.com/docs/5.7/passport

Until to the point where I was instructed to run command npm run dev which failed: ... sh: 1: cross-env: not found ...

I tried to run command npm install which failed as well: npm ERR! enoent ENOENT: no such file or directory, rename '/home/vagrant/code/myproj/node_modules/http-proxy-middleware/node_modules/.extglob.DELETE/node_modules/is-extglob' -> '/home/vagrant/code/myproj/node_modules/http-proxy-middleware/node_modules/extglob/node_modules/is-extglob'

Host is MAC OS, Vagrant version 2.2.4, Homestead v8.2.0, VMware Fusion.

Any help?

0 likes
3 replies
munazzil's avatar
munazzil
Best Answer
Level 13

Just use below cdn in your main.view.php.I also faced same issue.

            <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
munazzil's avatar

Welcome Can you mark as solved this then other would be able to see this. I think your beginner please go to the provided answer right hand side there is best answer option button click on that.

Please or to participate in this conversation.