ctf0 / Laravel-Media-Manager

A "Vuejs & Laravel" Media Manager With Tons of Features
MIT License
829 stars 179 forks source link

npm run dev date-fns error [Laravel 5.8] #113

Closed fazforward closed 4 years ago

fazforward commented 4 years ago

When I run npm run dev it returns this error:

 ERROR  Failed to compile with 2 errors                                                                                           14:25:28
These dependencies were not found:

* date-fns/add_minutes in ./resources/assets/vendor/MediaManager/js/modules/cache.js
* date-fns/get_time in ./resources/assets/vendor/MediaManager/js/modules/cache.js

To install them, you can run: npm install --save date-fns/add_minutes date-fns/get_time

and when i run _npm install --save date-fns/add_minutes date-fns/get_time it returns:

npm ERR! Error while executing:
npm ERR! C:\Program Files\Git\mingw64\bin\git.EXE ls-remote -h -t ssh://git@github.com/date-fns/add_minutes.git
npm ERR!
npm ERR! Host key verification failed.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\mafazasp\AppData\Roaming\npm-cache\_logs\2019-08-28T07_43_50_821Z-debug.log

thanks.

ctf0 commented 4 years ago
alitaleghani commented 4 years ago

I believe this is an issue. I have this problem and date-fns is missing.

fazforward commented 4 years ago

I already found the solution btw ...

It just some little syntax difference in that particular version ...

ctf0 commented 4 years ago

i have fixed the new syntax issue in the latest release, check test repo