These are chat archives for jescalan/roots

1st
May 2015
Jeff Escalante
@jescalan
May 01 2015 00:22
@kendall you can PR into accord if you want that kind of functionality :) it's very simple
im sure you wont have much trouble getting an adapter together for it
vsopvsop
@vsopvsop
May 01 2015 07:27
This error comes while running roots watch
~$ roots watch
compiling...
events.js:72
throw er; // Unhandled 'error' event
^
Error: watch EACCES
at errnoException (fs.js:1024:11)
at FSWatcher.start (fs.js:1056:11)
at Object.fs.watch (fs.js:1081:11)
at createFsWatchInstance (/usr/lib/node_modules/roots/node_modules/chokidar/lib/nodefs-handler.js:37:15)
at setFsWatchListener (/usr/lib/node_modules/roots/node_modules/chokidar/lib/nodefs-handler.js:80:19)
at EventEmitter.NodeFsHandler._watchWithNodeFs (/usr/lib/node_modules/roots/node_modules/chokidar/lib/nodefs-handler.js:228:14)
at EventEmitter.NodeFsHandler._handleDir (/usr/lib/node_modules/roots/node_modules/chokidar/lib/nodefs-handler.js:403:23)
at EventEmitter.<anonymous> (/usr/lib/node_modules/roots/node_modules/chokidar/lib/nodefs-handler.js:450:19)
at EventEmitter.<anonymous> (/usr/lib/node_modules/roots/node_modules/chokidar/lib/nodefs-handler.js:455:16)
at Object.oncomplete (fs.js:107:15)
what to do?
Jeff Escalante
@jescalan
May 01 2015 11:25
This is a permissions issue.
Make sure you are the owner of your project and that roots has been installed without sudo
if you used sudo for any of the setup commands, you either need to use sudo for everything or do some permissions management to re-own your files
i'd start out with sudo chown -R $USER /usr/lib/node_modules and see where that gets you
this is not a roots error however
this is a unix understanding issue
vsopvsop
@vsopvsop
May 01 2015 17:18
Yes. might have installed roots with sudo earlier.
Removed roots using the command sudo npm uninstall roots -g
The command didnt work when I left out -g the first time I tried.
Now while trying to install roots without sudo, I get the following error.

npm install roots -g
npm WARN optional dep failed, continuing fsevents@0.3.5
npm ERR! Linux 3.19.0-15-generic
npm ERR! argv "node" "/usr/local/bin/npm" "install" "roots" "-g"
npm ERR! node v0.10.25
npm ERR! npm v2.2.0
npm ERR! path ../lib/node_modules/roots/bin/roots
npm ERR! code EACCES
npm ERR! errno 3

npm ERR! Error: EACCES, symlink '../lib/node_modules/roots/bin/roots'
npm ERR! { [Error: EACCES, symlink '../lib/node_modules/roots/bin/roots']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '../lib/node_modules/roots/bin/roots' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR! /home/user/npm-debug.log

From npm-debug.log
error argv "node" "/usr/local/bin/npm" "install" "roots" "-g"
54967 error node v0.10.25
54968 error npm v2.2.0
54969 error path ../lib/node_modules/roots/bin/roots
54970 error code EACCES
54971 error errno 3
54972 error Error: EACCES, symlink '../lib/node_modules/roots/bin/roots'
54972 error { [Error: EACCES, symlink '../lib/node_modules/roots/bin/roots']
54972 error errno: 3,
54972 error code: 'EACCES',
54972 error path: '../lib/node_modules/roots/bin/roots' }
54973 error Please try running this command again as root/Administrator.
54974 verbose exit [ 3, true ]
54975 verbose unbuild lib/node_modules/roots
54976 info preuninstall roots@3.0.4
54977 info uninstall roots@3.0.4
54978 verbose unbuild rmStuff roots@3.0.4 from /usr/lib/node_modules
54979 verbose gentlyRm verifying that /usr is managed by npm
54980 silly isManaged /usr is not inside /usr/lib/node_modules
54981 silly isManaged /usr is not inside /usr/lib/node_modules
54982 silly isManaged /usr is not inside /usr/bin
54983 silly isManaged /usr is inside /usr
54984 silly gentlyRm /usr is managed by npm
54985 silly gentlyRm /usr/bin/roots is under /usr
54986 verbose gentlyRm vacuuming /usr/bin/roots up to /usr
54987 info postuninstall roots@3.0.4
54988 verbose gentlyRm vacuuming /usr/lib/node_modules/roots
54989 silly gentlyRm purging /usr/lib/node_modules/roots
54990 silly gentlyRm quitting because other entries in /usr/lib/node_modules
vsopvsop
@vsopvsop
May 01 2015 17:23
//if you used sudo for any of the setup commands, you either need to use sudo for everything or do some permissions management to re-own your files//
This is right in retrospect.
What to do now. Please guide. I am a newbie.