Skip to content

Conversation

addaleax
Copy link
Collaborator

@addaleax addaleax commented May 5, 2021

Both Node.js 12 and Node.js 14 ship with npm@6.x out of the box,
and this failed recently on an s390x machine where it tried to
write to the already-present Node.js 8 installation, so let’s
skip this for now unless that’s a problem too.

[2021/05/04 19:24:59.963] ++ npm install -g npm@6
[2021/05/04 19:24:59.963] npm WARN checkPermissions Missing write access to /opt/node-v8.11.3-linux-ppc64le/lib/node_modules/npm/node_modules/ansi-regex
[2021/05/04 19:24:59.963] npm WARN checkPermissions Missing write access to /opt/node-v8.11.3-linux-ppc64le/lib/node_modules/npm/node_modules/aproba
[2021/05/04 19:24:59.963] npm WARN checkPermissions Missing write access to /opt/node-v8.11.3-linux-ppc64le/lib/node_modules/npm/node_modules/bluebird
<...>
[2021/05/04 19:25:00.019] npm ERR! Error: EACCES: permission denied, access '/opt/node-v8.11.3-linux-ppc64le/lib/node_modules/npm/node_modules/ansi-regex'

Both Node.js 12 and Node.js 14 ship with npm@6.x out of the box,
and this failed recently on an s390x machine where it tried to
write to the already-present Node.js 8 installation, so let’s
skip this for now unless that’s a problem too.

    [2021/05/04 19:24:59.963] ++ npm install -g npm@6
    [2021/05/04 19:24:59.963] npm WARN checkPermissions Missing write access to /opt/node-v8.11.3-linux-ppc64le/lib/node_modules/npm/node_modules/ansi-regex
    [2021/05/04 19:24:59.963] npm WARN checkPermissions Missing write access to /opt/node-v8.11.3-linux-ppc64le/lib/node_modules/npm/node_modules/aproba
    [2021/05/04 19:24:59.963] npm WARN checkPermissions Missing write access to /opt/node-v8.11.3-linux-ppc64le/lib/node_modules/npm/node_modules/bluebird
    <...>
    [2021/05/04 19:25:00.019] npm ERR! Error: EACCES: permission denied, access '/opt/node-v8.11.3-linux-ppc64le/lib/node_modules/npm/node_modules/ansi-regex'
@addaleax addaleax requested a review from rose-m May 5, 2021 12:46
Copy link
Contributor

@rose-m rose-m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@addaleax addaleax merged commit a7cadcb into main May 5, 2021
@addaleax addaleax deleted the no-npm-install-g branch May 5, 2021 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants