I am trying to install strongloop pm on centos-6-x86_64npm install -g strongloopBut it spits the following errorIt seems to be some error with permissionsso i tried installing with sudoBut still get the same errorHere is the last part of the loggyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/10.15.1" gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/strongloop/node_modules/ws/node_modules/bufferutil/.node-gyp" gyp WARN install got an error, rolling back install gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/lib/node_modules/strongloop/node_modules/ws/node_modules/bufferutil/.node-gyp' gyp ERR! System Linux 2.6.32-042stab132.1 gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /usr/lib/node_modules/strongloop/node_modules/ws/node_modules/bufferutil gyp ERR! node -v v10.15.1 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok > strong-mesh-client@1.6.5 install /usr/lib/node_modules/strongloop/node_modules/strong-mesh-client > node proxy/build-client.js unable to generate browser bundle: EACCES: permission denied, open '/usr/lib/node_modules/strongloop/node_modules/strong-mesh-client/proxy/mesh-client-bundle.js' npm WARN acorn-dynamic-import@4.0.0 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: heapdump@0.3.12 (node_modules/strongloop/node_modules/heapdump): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: heapdump@0.3.12 install: `node-gyp rebuild` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: modern-syslog@1.1.4 (node_modules/strongloop/node_modules/modern-syslog): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: modern-syslog@1.1.4 install: `node-gyp rebuild` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: sqlite3@3.1.4 (node_modules/strongloop/node_modules/sqlite3): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: sqlite3@3.1.4 install: `node-pre-gyp install --fallback-to-build` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.2.2 (node_modules/strongloop/node_modules/utf-8-validate): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: utf-8-validate@1.2.2 install: `node-gyp rebuild` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.2.1 (node_modules/strongloop/node_modules/ws/node_modules/bufferutil): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: bufferutil@1.2.1 install: `node-gyp rebuild` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! strong-mesh-client@1.6.5 install: `node proxy/build-client.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the strong-mesh-client@1.6.5 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-02-02T16_44_29_278Z-debug.log
Submitted February 02, 2019 at 05:18PM by Hayk94
No comments:
Post a Comment