blueimp / Gallery

blueimp Gallery is a touch-enabled, responsive and customizable image & video gallery, carousel and lightbox, optimized for both mobile and desktop web browsers. It features swipe, mouse and keyboard navigation, transition effects, slideshow functionality, fullscreen support and on-demand content loading.
https://blueimp.github.io/Gallery/
Other
3.75k stars 984 forks source link

Running `npm install blueimp-gallery` errors out #267

Open logankilpatrick opened 2 years ago

logankilpatrick commented 2 years ago

When I run the install command, I get:

(base) logankilpatrick@MacBook-Pro-2 test % npm install blueimp-gallery
npm WARN saveError ENOENT: no such file or directory, open '/Users/logankilpatrick/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/Users/logankilpatrick/package.json'
npm WARN logankilpatrick No description
npm WARN logankilpatrick No repository field.
npm WARN logankilpatrick No README data
npm WARN logankilpatrick No license field.

+ blueimp-gallery@3.4.0
updated 1 package and audited 1 package in 0.329s
found 0 vulnerabilities
sebastian-marinescu commented 1 year ago

Hi @logankilpatrick it does install blueimp-gallery:

+ blueimp-gallery@3.4.0
updated 1 package and audited 1 package in 0.329s

However, the warnings:

npm WARN saveError ENOENT: no such file or directory, open '/Users/logankilpatrick/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/Users/logankilpatrick/package.json'
npm WARN logankilpatrick No description
npm WARN logankilpatrick No repository field.
npm WARN logankilpatrick No README data
npm WARN logankilpatrick No license field.

are because you have ran this in a non-npm-directory, or in clear words: You are missing your package.json.

If you npm init in a directory before, and it creates your package.json, these warnings will be omitted.