I'm trying to install ReactFire with jspm. The command I use is:
jspm install npm:reactfire
It installs a bunch of dependencies, then gives this error:
warn Error on build
Error: EPERM: operation not permitted, open 'C:\Users\aldel\AppData\Local\.jspm\packages\npm\firebase@3.1.0\app.js'
at Error (native)
err Error building package npm:firebase.
warn Installation changes not saved.
Sometimes it gives the error on auth.js instead of app.js (same directory). It seems like the whole directory (firebase@3.1.0, that is) is created by jspm when running the above command, so it seems like it gets created, and then is immediately inaccessible by its creator.
I've tried:
- adding -f to the jspm command line
- installing before or after Firebase, React, and React-Dom
- running with administrator privileges
- clearing caches in both npm and jspm
- messing with file and directory permissions
- (edit) adding various -o options to try to prevent the Firebase dependency from installing from npm
I also just noticed that the same error happens if I do jspm install npm:firebase
. I think the problem above happens when Firebase is installed as a dependency of ReactFire. Just doing jspm install firebase
installs it from github:firebase/firebase-bower
, not from npm:firebase
(maybe because npm:firebase doesn't work??).
So I think it's a problem with how npm:firebase
gets downloaded and installed, and/or with how npm:reactfire
depends on npm:firebase
. But I'm not sure how to fix or work around it. I'm pretty new to npm and jspm.
And I'm on Windows. Sorry.
Any ideas?