Permission Denied #2

クローズ
josh2019-03-03 04:49:50 +00:00に作成 · 5件のコメント

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
説明はありません。