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/[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.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions