Permission Denied #2

已關閉
建立於 2019-03-03 04:49:50 +00:00josh · 5 comment

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 ..... ```
擁有者

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.
作者

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.
擁有者

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 關閉了這個問題 2019-04-04 06:09:25 +00:00
作者

That's good.

That's good.

[spam post removed]

[spam post removed]
登入 才能加入這對話。
未選擇標籤
未選擇里程碑
沒有負責人
3 參與者
通知
截止日期
截止日期無效或超出範圍,請使用「yyyy-mm-dd」的格式。

未設定截止日期。

先決條件

未設定先決條件。

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