Bower Install error
Bower install at the time of execution, always eaccess error;
Stack Trace:Error:EACCES, rename '/var/folders/3b/0jd32f912h11193j_6gz4d700000gn/t/$user/bower/ Google-code-prettify-5938-0i0zuc ' at Error (native) Console trace:trace at Standardrenderer.error (/usr/local/li B/NODE_MODULES/BOWER/LIB/RENDERERS/STANDARDRENDERER.JS:82:17) at logger.<anonymous> (/usr/local/lib/node_ modules/bower/bin/bower:110:22) at Logger.emit (events.js:107:17) at Logger.emit (/usr/local/lib/node_modules/bowe r/node_modules/bower-logger/lib/logger.js:29:39) at/usr/local/lib/node_modules/bower/lib/commands/index.js : 40:20 at _rejected (/usr/local/lib/node_modules/bower/node_modules/q/q.js:797:24) at/usr/local/lib/node_modules/ Bower/node_modules/q/q.js:823:30 at Promise.when (/usr/local/lib/node_modules/bower/node_modules/q/q.js:1035:31) A T Promise.promise.promiseDispatch (/usr/local/lib/node_modules/bower/node_modules/q/q.js:741:41) at/usr/local/lib
/node_modules/bower/node_modules/q/q.js:557:44
Workaround
sudo bower Install–allow-root
sudo chown-r $USER bower_components
The first statement is forced to execute as root, and then all Bower dependencies are changed to the current user;