Artillery: unable to install artillery

Created on 4 Jul 2019  路  2Comments  路  Source: artilleryio/artillery

unable to install artillery in root
I have try node 10.16.0 and 11.14.0
Neither of them is working.
I have already in root. It kept said permission denied.

# npm i -g artillery
/usr/local/bin/artillery -> /usr/local/lib/node_modules/artillery/bin/artillery

> [email protected] postinstall /usr/local/lib/node_modules/artillery/node_modules/jsonpath
> node lib/aesprim.js > generated/aesprim-browser.js

sh: 1: cannot create generated/aesprim-browser.js: Permission denied
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] postinstall: `node lib/aesprim.js > generated/aesprim-browser.js`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the [email protected] postinstall 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-07-04T06_04_26_309Z-debug.log

Most helpful comment

Try below. It should solve the issue.
npm install -g artillery --allow-root --unsafe-perm=true

All 2 comments

This is an issue with a dependency of a dependency. Try installing with npm install --ignore-scripts.

As an aside, I'd strongly recommend against installing any packages as root.

Try below. It should solve the issue.
npm install -g artillery --allow-root --unsafe-perm=true

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SamDecrock picture SamDecrock  路  5Comments

kennethlynne picture kennethlynne  路  5Comments

sonisaurabh19 picture sonisaurabh19  路  5Comments

hartmut-co-uk picture hartmut-co-uk  路  4Comments

mrchief picture mrchief  路  3Comments