Permission Denied #2

Chiuso
aperto 2019-03-03 04:49:50 +00:00 da josh · 5 commenti

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 ..... ```
Proprietario

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.
Autore

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.
Proprietario

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 chiuso questo probleam 2019-04-04 06:09:25 +00:00
Autore

That's good.

That's good.

[spam post removed]

[spam post removed]
Effettua l'accesso per partecipare alla conversazione.
Nessuna etichetta
Nessuna milestone
Nessuna assegnatario
3 Partecipanti
Notifiche
Data di scadenza
La data di scadenza non è valida o fuori intervallo. Si prega di utilizzare il formato 'aaaa-mm-dd'.

Nessuna data di scadenza impostata.

Dipendenze

Nessuna dipendenza impostata.

Riferimento: coolaj86/node-installer.sh#2
No description provided.