It looks like folks who install node/npm using homebrew are going to ruin into this problem.
https://gist.github.com/DanHerbert/9520689 has a nice explanation and a fix for this issue. Thanks, Om On Dec 29, 2015 10:00 AM, "Josh Tynjala" <joshtynj...@gmail.com> wrote: > I had this issue a while back. I could only install packages globally if I > used sudo. I don't remember exactly what I did to fix it, but I recall > seeing a suggestion to configure npm to install global packages at a > different location. I'll try to remember to check later when I'm at my > computer. > > - Josh > On Dec 29, 2015 9:18 AM, "Carlos Rovira" <carlos.rov...@codeoscopic.com> > wrote: > > > Hi Om, > > > > I had installed npm 2.11.3 > > > > I tried "npm install -g > > http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz" > > > > and this gave me this error: > > > > macbookpro:~ carlosrovira$ npm install -g > > http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz > > > > npm ERR! tar.unpack untar error > > /Users/carlosrovira/.npm/flexjs/0.5.0/package.tgz > > > > npm ERR! Darwin 15.2.0 > > > > npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" " > > http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz" > > > > npm ERR! node v0.12.7 > > > > npm ERR! npm v2.11.3 > > > > npm ERR! path /usr/local/lib/node_modules/flexjs > > > > npm ERR! code EACCES > > > > npm ERR! errno -13 > > > > > > npm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules/flexjs' > > > > npm ERR! at Error (native) > > > > npm ERR! { [Error: EACCES, mkdir '/usr/local/lib/node_modules/flexjs'] > > > > npm ERR! errno: -13, > > > > npm ERR! code: 'EACCES', > > > > npm ERR! path: '/usr/local/lib/node_modules/flexjs', > > > > npm ERR! fstream_type: 'Directory', > > > > npm ERR! fstream_path: '/usr/local/lib/node_modules/flexjs', > > > > npm ERR! fstream_class: 'DirWriter', > > > > npm ERR! fstream_stack: > > > > npm ERR! [ > > > > > '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:35:25', > > > > npm ERR! > > '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:47:53', > > > > npm ERR! 'FSReqWrap.oncomplete (fs.js:95:15)' ] } > > > > 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! /Users/carlosrovira/npm-debug.log > > > > > > > > > > 2015-12-29 11:29 GMT+01:00 OmPrakash Muppirala <omup...@gmail.com>: > > > > > Here are the steps on how to test the npm flexjs module. > > > > > > 1. If you don't have Node and/or npm installed, first install it > > > - Windows: Use the Installer from https://nodejs.org. Ensure > that > > > you select the 'npm package manager' option during installation. > > Use > > > the > > > Command Prompt here on. > > > - Mac: Run *brew install node* from the terminal > > > 2. Make sure npm is available by running *npm -v* > > > 3. Now run *npm install -g > > > http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz > > > <http://bigosmallm.github.io/flexjs/npm/flexjs-0.5.0.tgz>* (It > > takes a > > > while to download all the dependencies and there are a couple of > > prompts > > > you need to answer) > > > This will install the entire FlexJS SDK and register asjsc and > > asjscompc > > > as global binaries. > > > 4. Now run > > > *asjsc <your_actionscript_file_name.as > > > <http://your_actionscript_file_name.as>> *You should at least see > > some > > > relevant error messages. Once you have this running, you are at the > > > same > > > page as me. > > > 5. Run *asjscompc <args> *This seems to work, but would be nice to > > have > > > confirmation > > > > > > > > > Now you can help me debug the issues (especially Alex) :-) > > > > > > Thanks, > > > Om > > > > > > > > > > > -- > > > > Carlos Rovira > > Director General > > M: +34 607 22 60 05 > > http://www.codeoscopic.com > > http://www.avant2.es > > > > > > Este mensaje se dirige exclusivamente a su destinatario y puede contener > > información privilegiada o confidencial. Si ha recibido este mensaje por > > error, le rogamos que nos lo comunique inmediatamente por esta misma vía > y > > proceda a su destrucción. > > > > De la vigente Ley Orgánica de Protección de Datos (15/1999), le > comunicamos > > que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC > > S.A. La finalidad de dicho tratamiento es facilitar la prestación del > > servicio o información solicitados, teniendo usted derecho de acceso, > > rectificación, cancelación y oposición de sus datos dirigiéndose a > nuestras > > oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación > > necesaria. > > >