shell icon indicating copy to clipboard operation
shell copied to clipboard

Unable to install on Ubuntu 16.04

Open Param-S opened this issue 7 years ago • 8 comments

Issue #303

I see exactly the same error on ubuntu system.

cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS"

/usr/local/bin/fsh -> /usr/local/lib/node_modules/@ibm-functions/shell/bin/fsh

> @ibm-functions/[email protected] postinstall /usr/local/lib/node_modules/@ibm-functions/shell
> node bin/install.js


/usr/local/lib/node_modules/@ibm-functions/shell/bin/install.js:73
        if (err) throw err
                 ^

Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/@ibm-functions/shell/tmp-9974OKz8wy2WbEEx'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ibm-functions/[email protected] postinstall: `node bin/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ibm-functions/[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!     /home/parselva/.npm/_logs/2018-02-01T14_36_14_941Z-debug.log

$ node --version v8.9.4 npm --version 5.6.0

Param-S avatar Feb 01 '18 14:02 Param-S

Thanks for the bug report! Have you tried sudo?

starpit avatar Feb 01 '18 14:02 starpit

Yes... tried with sudo

$sudo npm install -g @ibm-functions/shell /usr/local/bin/fsh -> /usr/local/lib/node_modules/@ibm-functions/shell/bin/fsh

Param-S avatar Feb 02 '18 06:02 Param-S

Same issue on Fedora 27

gpoul avatar Feb 20 '18 21:02 gpoul

thanks for the confirmation @gpoul

can you provide the nodejs version you have installed?

starpit avatar Feb 25 '18 01:02 starpit

[gpoul@localhost ~]$ node --version
v8.9.4
[gpoul@localhost ~]$ rpm -qa |grep nodejs
nodejs-8.9.4-2.fc27.x86_64

gpoul avatar Feb 26 '18 21:02 gpoul

if someone is facing this issue, they can try with these extra args --unsafe-perm=true in npm install command. It should work.

 npm install -g @ibm-functions/shell --unsafe-perm=true

neerajmangal avatar Apr 04 '18 11:04 neerajmangal

Thank you. We also now offer direct download links via the Releases tab on the GitHub page.

starpit avatar Apr 04 '18 11:04 starpit

Same error on MacOS, needed this to install: sudo npm install -g @ibm-functions/shell --unsafe-perm=true

nickl44 avatar Apr 12 '18 10:04 nickl44