facebookarchive / react-meteor

React rendering for Meteor apps
948 stars 113 forks source link

Permission error on installing #30

Closed ryan-williams closed 9 years ago

ryan-williams commented 9 years ago

After running

echo react >> .meteor/packages
git clone https://github.com/benjamn/react-meteor.git packages/react

my meteor app is crashing with errors like:

$ meteor
[[[[[ ~/c/curves ]]]]]

=> Started proxy.
compileJSX: updating npm dependencies -- react, react-tools...
=> Started MongoDB.
npm ERR! Error: EACCES, mkdir '/Users/ryan/.npm/through/2.3.6'
npm ERR!  { [Error: EACCES, mkdir '/Users/ryan/.npm/through/2.3.6']
npm ERR!   errno: 3,
npm ERR!   code: 'EACCES',
npm ERR!   path: '/Users/ryan/.npm/through/2.3.6',
npm ERR!   parent: 'envify' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Darwin 14.1.0
npm ERR! command "/Users/ryan/.meteor/packages/meteor-tool/.1.0.40.959pzb++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/bin/node"
"/Users/ryan/.meteor/packages/meteor-tool/.1.0.40.959pzb++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/dev_bundle/bin/npm" "install" "react@0.10.0"
npm ERR! cwd /Users/ryan/c/curves/packages/react/.npm/plugin/compileJSX-new-1yfuxd2
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! path /Users/ryan/.npm/through/2.3.6
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/Users/ryan/.npm/through/2.3.6'
npm ERR! not ok code 0

Seems like some kind of permissions are screwy on my system, but I don't really have a mental model of what is calling npm install and why, where it's trying to write to, etc., so if anything is obvious to you about what might cause this lmk! Thanks!

The /Users/ryan/.npm directory referenced is owned by user ryan, which is also the user running meteor.

ryan-williams commented 9 years ago

nevermind, I had stuff in my $HOME/.npm that was owned by root for some reason. closing