Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Unable to install on Ubuntu 16.04  #326

Open
@Param-S

Description

@Param-S

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/shell@1.3.405 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/shell@1.3.405 postinstall: `node bin/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ibm-functions/shell@1.3.405 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

Activity

starpit

starpit commented on Feb 1, 2018

@starpit
Member

Thanks for the bug report! Have you tried sudo?

Param-S

Param-S commented on Feb 2, 2018

@Param-S
Author

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

gpoul

gpoul commented on Feb 20, 2018

@gpoul

Same issue on Fedora 27

starpit

starpit commented on Feb 25, 2018

@starpit
Member

thanks for the confirmation @gpoul

can you provide the nodejs version you have installed?

gpoul

gpoul commented on Feb 26, 2018

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

neerajmangal commented on Apr 4, 2018

@neerajmangal

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
starpit

starpit commented on Apr 4, 2018

@starpit
Member

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

nickl44

nickl44 commented on Apr 12, 2018

@nickl44

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @gpoul@starpit@nickl44@Param-S@neerajmangal

        Issue actions

          Unable to install on Ubuntu 16.04 · Issue #326 · ibm-functions/shell