- Where Developers Learn, Share, & Build Careers


I am new to node and I have installed it by running the installation from the node website. I had a drama to set up a package globally (for example), but now I'm trying to install the tower module on my Mac , such as: < Set> sudo npm installer tower

This installs a bunch of stuff and then crashes, with output

  npm Http 304 https://registry.npmjs.org/ Tinycolor npm http 304 https://registry.npmjs.org/zeparser/0.0.5 & gt; Ws@0.4.20 install /usr/local/lib/node_modules/tower/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws & gt; Node install.js shell-init: Error retrieving current directory: getcwd: Can not access parent directory: permission denied node Js: 520 var cwd = process.cwd (); ^ Error: EACCES, Startup at Function (node.js: 54:13) node.js: 611: 3 startup at startup on NPM ERR. Permission denied on ROLVARGV0 (node.jes: 520: 23). Ws@0.4.20 Installed: `node install.js` NPM ERR! "Shaw" -a "node install.js" failed with 11 NMR ERR! NPM ERR! Ws@0.4.20 Install script failed. NPM ERR! This is most likely a problem with ws package, NPM ERR! Please tell the author NPM ERR with NPM yourself that it fails on your system: NPM ERR! Node install.js NMP ERR! You can get your information: NPM ERR! NPM owner LS YS NPM ERR! Side possibility of additional logging output   

If I read it correctly, then this (WebSetts?) Module is crashing.

In researching this problem, Bashrc so i have

on this line:

ws@0.4.20 install /usr/local/lib/node_modules/tower/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws

We see that ws are installed in / usr / local / lib, so do I need a root to type here?

I get Linux Abuse'm probably not the Mac ...

you sudo npm install -g should use tower or should install Node.js with it. NVM thinks that modules are installed in your home, so you do not need a pseudo.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -