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
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
Most helpful comment
Try below. It should solve the issue.
npm install -g artillery --allow-root --unsafe-perm=true