Permission Denied #2

Cerrada
abierta 2019-03-03 04:49:50 +00:00 por josh · 5 comentarios

Fresh install of Linux Mint 19.1 (Ubuntu 18.04)

Ran:

curl -fsL bit.ly/node-installer | bash

It returned:

Preparing to install node.js (minimal) for ubuntu 64
NODE_PATH is not set. Using default install path '/usr/local'
installing node as node v11.10.1...
sudo rsync -Krl /tmp/node-installer.iw0ywsTo/node-v11.10.1-linux-x64/ /usr/local/
rsync: symlink "/usr/local/bin/npm" -> "../lib/node_modules/npm/bin/npm-cli.js" failed: Permission denied (13)
rsync: symlink "/usr/local/bin/npx" -> "../lib/node_modules/npm/bin/npx-cli.js" failed: Permission denied (13)
rsync: recv_generator: mkdir "/usr/local/include/node" failed: Permission denied (13)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/usr/local/lib/node_modules" failed: Permission denied (13)
*** Skipping any contents from this failed directory ***
rsync: mkstemp "/usr/local/bin/.node.Ftnkyn" failed: Permission denied (13)
rsync: recv_generator: mkdir "/usr/local/share/doc" failed: Permission denied (13)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/usr/local/share/man/man1" failed: Permission denied (13)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/usr/local/share/systemtap" failed: Permission denied (13)
*** Skipping any contents from this failed directory ***
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2]
chown: changing ownership of '/usr/local/lib/node_modules/npm/lib/logout.js': Operation not permitted
chown: changing ownership of '/usr/local/lib/node_modules/npm/lib/audit.js': Operation not permitted
chown: changing ownership of '/usr/local/lib/node_modules/npm/lib/token.js': Operation not permitted
chown: changing ownership of '/usr/local/lib/node_modules/npm/lib/install.js': Operation not permitted
chown: changing ownership of '/usr/local/lib/node_modules/npm/lib/whoami.js': Operation not permitted
chown: changing ownership of '/usr/local/lib/node_modules/npm/lib/restart.js': Operation not permitted
chown: changing ownership of '/usr/local/lib/node_modules/npm/lib/unpublish.js': Operation not permitted
chown: changing ownership of '/usr/local/lib/node_modules/npm/lib/uninstall.js': Operation not permitted
chown: changing ownership of '/usr/local/lib/node_modules/npm/lib/test.js': Operation not permitted
.....
Fresh install of Linux Mint 19.1 (Ubuntu 18.04) Ran: ``` curl -fsL bit.ly/node-installer | bash ``` It returned: ``` Preparing to install node.js (minimal) for ubuntu 64 NODE_PATH is not set. Using default install path '/usr/local' installing node as node v11.10.1... sudo rsync -Krl /tmp/node-installer.iw0ywsTo/node-v11.10.1-linux-x64/ /usr/local/ rsync: symlink "/usr/local/bin/npm" -> "../lib/node_modules/npm/bin/npm-cli.js" failed: Permission denied (13) rsync: symlink "/usr/local/bin/npx" -> "../lib/node_modules/npm/bin/npx-cli.js" failed: Permission denied (13) rsync: recv_generator: mkdir "/usr/local/include/node" failed: Permission denied (13) *** Skipping any contents from this failed directory *** rsync: recv_generator: mkdir "/usr/local/lib/node_modules" failed: Permission denied (13) *** Skipping any contents from this failed directory *** rsync: mkstemp "/usr/local/bin/.node.Ftnkyn" failed: Permission denied (13) rsync: recv_generator: mkdir "/usr/local/share/doc" failed: Permission denied (13) *** Skipping any contents from this failed directory *** rsync: recv_generator: mkdir "/usr/local/share/man/man1" failed: Permission denied (13) *** Skipping any contents from this failed directory *** rsync: recv_generator: mkdir "/usr/local/share/systemtap" failed: Permission denied (13) *** Skipping any contents from this failed directory *** rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1196) [sender=3.1.2] chown: changing ownership of '/usr/local/lib/node_modules/npm/lib/logout.js': Operation not permitted chown: changing ownership of '/usr/local/lib/node_modules/npm/lib/audit.js': Operation not permitted chown: changing ownership of '/usr/local/lib/node_modules/npm/lib/token.js': Operation not permitted chown: changing ownership of '/usr/local/lib/node_modules/npm/lib/install.js': Operation not permitted chown: changing ownership of '/usr/local/lib/node_modules/npm/lib/whoami.js': Operation not permitted chown: changing ownership of '/usr/local/lib/node_modules/npm/lib/restart.js': Operation not permitted chown: changing ownership of '/usr/local/lib/node_modules/npm/lib/unpublish.js': Operation not permitted chown: changing ownership of '/usr/local/lib/node_modules/npm/lib/uninstall.js': Operation not permitted chown: changing ownership of '/usr/local/lib/node_modules/npm/lib/test.js': Operation not permitted ..... ```
Propietario

I'm guessing that where it cut off with the .... is where is said something like "can't install as a normal user, you'll need to sudo" and then asked for your password?

It doesn't force you to install as root like it did before. Now it works as a normal user also.

However... definitely needs some sort of way to either hide those errors, do early detection, or something... because that is ugly and confusing.

I'm guessing that where it cut off with the `....` is where is said something like "can't install as a normal user, you'll need to sudo" and then asked for your password? It doesn't force you to install as root like it did before. Now it works as a normal user also. However... definitely needs some sort of way to either hide those errors, do early detection, or something... because that is ugly and confusing.
Autoría

No. I should have been more clear. The .... was replacing a hundred or so lines of the same "Operation not permitted" errors.

No. I should have been more clear. The `....` was replacing a hundred or so lines of the same "Operation not permitted" errors.
Propietario

Just so you can see what the fix was:

• 689fa58531

• c3890ca8a9

Just so you can see what the fix was: • https://git.coolaj86.com/coolaj86/node-installer.sh/commit/689fa5853196be8997cca4ec3e0a460765258f25 • https://git.coolaj86.com/coolaj86/node-installer.sh/commit/c3890ca8a9adc6945ff5e15b769a474a09d3b005
coolaj86 cerró esta incidencia 2019-04-04 06:09:25 +00:00
Autoría

That's good.

That's good.

[spam post removed]

[spam post removed]
Inicie sesión para unirse a esta conversación.
Sin etiquetas
Sin Milestone
No asignados
3 participantes
Notificaciones
Fecha de vencimiento
La fecha de vencimiento es inválida o está fuera de rango. Por favor utilice el formato 'aaaa-mm-dd'.

Sin fecha de vencimiento.

Dependencias

No se han establecido dependencias.

Referencia: coolaj86/node-installer.sh#2
No se ha proporcionado una descripción.