Sunday, 15 January 2012

linux - EACESS error when executing bower -


I am trying to set up a polymer project using the aqueduct,

I have successfully used the nodejs And am installing bower. But when I try to execute

  init bower  

in the command line, I always get this error

 Trace on StandardRenderer.error (/usr/lib/node_modules/bower/lib/renderers/StandardRenderer.js:82:17) on the logger & lt: stack trace: error: EACCES, open '/ kuda / Bower.json 'console detection. ; Anonymous & gt; (/ Usr / lib / node_modules / bower / bin / bover: 110: 22) at logger.emit (events.js: 95: 17) at logger.emit (/ usr / lib / node_modules / bover / node_modules / bover-logger /lib/Logger.js:29:39) _rejected at /usr/lib/node_modules/bower/lib/commands/index.js:40:20 (/ usr / lib on / node_modules / bover / node_modules / q / q. Js: 797: 24) /usr/lib/node_modules/bower/node_modules/q/q.js:823:30 Promise.when on (/usr/lib/node_modules/bower/node_modules/q/q.js:1035 : 31) at Promise.promise.promiseDispatch (/usr/lib/node_modules/bower/node_modules/q/q.js:741:41) at /usr/lib/node_modules/bower/node_modules/q/q.jsitter57 : 44  

pls help

You do not have permission < Go to Code> / usr / lib / node_modules /..., so this is a permission problem Is there.

A fool will now try sudo -E bower init - permission-root but this is not really a solution (though it works). Do not do that if you do not know what it does and which is the risk , which is counted for all the sudo commands 'Just when Pudo does not work' Actually there is not a good solution.

You probably run sudo npm install -g bower when you install Biver, because without Sudo did not work when this happens, So you do not own the Bower program, but you have no access to this root user and so on.

Try it:

  1. Delete Trash
  2. Follw this post:
  3. What is the NPM Bover , Without installing sudo
  4. Try init bower again

No comments:

Post a Comment