wavded / ogre

ogr2ogr geojson-focused web client
http://ogre.adc4gis.com
MIT License
266 stars 79 forks source link

Error: EACCES, open '/usr/lib/node_modules/ogre/src/public/style.css' #9

Closed ahayes closed 11 years ago

ahayes commented 11 years ago

Hello. Thanks for Ogre. :)

I've installed node.js and npm to be able to run ogre locally and it seems to work when running as root, but when I run under my account it gives the following error. I appear to be able to read the file so I'm a bit stumped. Is it trying to write to it?

ahayes@devel:~$ ogre Ogre started, listening on port 3000 { [Error: EACCES, open '/usr/lib/node_modules/ogre/src/public/style.css'] errno: 3, code: 'EACCES', path: '/usr/lib/node_modules/ogre/src/public/style.css' }

^Z
[2]+ Stopped ogre ahayes@devel:~$ bg [2]+ ogre & ahayes@devel:~$ ls -al /usr/lib/node_modules/ogre/src/public/style.css -rw-r--r-- 1 nobody root 203 Jan 7 16:22 /usr/lib/node_modules/ogre/src/public/style.css

wavded commented 11 years ago

yeah, stylus compiles the css file (and writes it out) when the server loads, you could install it locally instead

wavded commented 11 years ago

hey @ahayes, it was really lame to keep stylus around as its generates a five line css file :), so hopefully that should work better for you, let me know if you have any other issues