1
0
Derivar 1

Permission Denied #2

fechada(s)
aberta 2019-03-03 04:49:50 +00:00 por josh · 5 comentários

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 ..... ```
Proprietário(a)

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.
Proprietário(a)

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 encerrou esta questão 2019-04-04 06:09:25 +00:00
Autor(a)

That's good.

That's good.

[spam post removed]

[spam post removed]
Inicie a sessão para participar neste diálogo.
Sem rótulo
Sem etapa
Sem encarregados
3 Participantes
Notificações
Data de vencimento
A data de vencimento é inválida ou está fora do intervalo permitido. Por favor, use o formato 'aaaa-mm-dd'.

Sem data de vencimento definida.

Dependências

Não estão definidas dependências.

Referência: coolaj86/node-installer.sh#2
Nenhuma descrição fornecida.