thom4parisot / Imager.jsx

A React component for responsive images in desktop and mobile browsers. Featuring Imager.js.
https://npmjs.com/imager.jsx
MIT License
32 stars 7 forks source link

Fails on npm install #5

Closed newtriks closed 9 years ago

newtriks commented 9 years ago
$ npm install imager.jsx
-
> imager.jsx@1.1.0 postinstall /Users/newtriks/src/projects/funk-doctor/node_modules/imager.jsx
> if [[ $NODE_ENV != 'production' ]]; then npm run build; fi

> imager.jsx@1.1.0 build /Users/newtriks/src/projects/funk-doctor/node_modules/imager.jsx
> npm run build-vendor && npm run build-bundle

> imager.jsx@1.1.0 build-vendor /Users/newtriks/src/projects/funk-doctor/node_modules/imager.jsx
> browserify -r react -r lodash.debounce -o dist/vendor.js

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: ENOENT, open 'dist/vendor.js'

npm ERR! imager.jsx@1.1.0 build-vendor: `browserify -r react -r lodash.debounce -o dist/vendor.js`
npm ERR! Exit status 8
npm ERR! 
npm ERR! Failed at the imager.jsx@1.1.0 build-vendor script.
npm ERR! This is most likely a problem with the imager.jsx package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     browserify -r react -r lodash.debounce -o dist/vendor.js
thom4parisot commented 9 years ago

After a quick lookup, it seems the dist folder is not packaged with the npm package. Weird.

newtriks commented 9 years ago

Hah, I didn't have time to delve sorry, but now you indicated where the problem lies I can see you're ignoring the .gitignore, so the dist directory is not included as it's seen as empty. Adding !.gitignore to the file should fix :)

thom4parisot commented 9 years ago

Published as v1.1.1, thank you :-)