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 a MacBook Pro High Sierra #303

Open
@ljmwaugh

Description

@ljmwaugh

This is similar to Cannot install on MAC #297

issue sudo npm install -g @ibm-functions/shell

get error:
Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/@ibm-functions/shell/tmp-37712D1huM2Lxb4co'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ibm-functions/shell@1.3.402 postinstall: node bin/install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ibm-functions/shell@1.3.402 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

I tried to change the permissions as mentioned in issue 297 but when I tried that I get "Operation not permitted"

sudo chmod ugo+rwx -R /usr/local
chmod: -R: No such file or directory

ls -lO /usr
total 0
drwxr-xr-x 976 root wheel restricted 31232 Jan 24 10:02 bin
drwxr-xr-x 292 root wheel restricted 9344 Jan 24 10:02 lib
drwxr-xr-x 234 root wheel restricted 7488 Jan 24 10:02 libexec
drwxr-xr-x 17 root wheel sunlnk 544 Jan 4 10:49 local
drwxr-xr-x 247 root wheel restricted 7904 Jan 24 10:02 sbin
drwxr-xr-x 45 root wheel restricted 1440 Dec 18 09:22 share
drwxr-xr-x 5 root wheel restricted 160 Oct 25 12:33 standalone

Activity

starpit

starpit commented on Jan 30, 2018

@starpit
Member

thanks @ljmwaugh for the bug report!

to help us understand better, would you be able to share a few details of your setup:

  1. node version

  2. how did you install nodejs? from nodejs.com? or via homebrew? or?

thanks!

Param-S

Param-S commented on Feb 2, 2018

@Param-S

I am facing the same issue on my mac...

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

> @ibm-functions/shell@1.3.408 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-15826OcsXgDN7cvfL'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ibm-functions/shell@1.3.408 postinstall: `node bin/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ibm-functions/shell@1.3.408 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!     /Users/parselva/.npm/_logs/2018-02-02T06_43_54_597Z-debug.log

MacBook-Pro:$ node --version
v8.9.4
MacBook-Pro:
$ npm --version
5.6.0

node installer is downloaded from nodejs.org

giulianodm

giulianodm commented on Mar 15, 2018

@giulianodm

Hi,

Same issue for me. Logs are below.

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

@ibm-functions/shell@1.3.428 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-58718tBkSEZPSnzPF'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ibm-functions/shell@1.3.428 postinstall: node bin/install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ibm-functions/shell@1.3.428 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! /Users/giulianodm/.npm/_logs/2018-03-15T22_50_25_260Z-debug.log

$ node -v
v8.9.4

$ npm -v
5.7.1

starpit

starpit commented on Mar 17, 2018

@starpit
Member

thank you very much for the info @giulianodm. this issue is near or at the top of the triage list!

starpit

starpit commented on Mar 19, 2018

@starpit
Member

@giulianodm when you have a chance, could you give it another quick shot? npm install -g @ibm-functions/shell

i suspect you will still have an issue, but there is a chance that this quick fix has remedied the issue. thanks!

if the issue persists, please let me know how you installed NodeJs (e.g. from nodejs.com, using brew, etc.), and i'll continue to pursue this issue.

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

        @starpit@Param-S@giulianodm@ljmwaugh

        Issue actions

          Unable to install on a MacBook Pro High Sierra · Issue #303 · ibm-functions/shell