Doesn't work with Ubuntu
vamsavardhana opened this issue · comments
Requires fsevents which requires Darwin.. Is there any way i can use this on ubuntu?
npm ERR! Linux 4.2.0-36-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "parallax-scroll" "-g" "--save"
npm ERR! node v7.4.0
npm ERR! npm v4.0.5
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for fsevents@1.0.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! notsup Valid OS: darwin
npm ERR! notsup Valid Arch: any
npm ERR! notsup Actual OS: linux
npm ERR! notsup Actual Arch: x64
npm-debuglog.txt
npm-debuglog.txt
Seems like an issue with your environment or node installation, as I've definitely installed this on an Ubuntu system, and it builds fine on Travis (Linux environment).
It looks like you're installing globally (using the -g flag) which is not intended usage. Maybe try installing the package locally and see if that resolved the issue?
I tried installing locally, but get the same error.
npm-debuglog.txt
fsevents is a package ONLY for OS X. I believe the issue here is that the shrink wrapping for parallax-scroll includes fsevents. The long term fix is to not include the dev deps in the shrink wrapping. A short term fix is to install using the --no-shrinkwrap option.