2017-11-21 17 views
0

ラズベリーパイにNPMを搭載してSodiumをインストールしようとすると、インストールは常に失敗し、/home/Captain/node_modules/libsodiumへの書き込みアクセス権がないというエラーメッセージが表示されます。私はsudoを通してインストールコマンドを実行していますが、インストールはまだ動作したくありません。私はちょうど私のインストールをロイヤルに混乱させましたか?ラズベリーパイのナトリウムがインストールされない

$ sudo npm install sodium 

npm WARN checkPermissions Missing write access to /home/Captain/node_modules/libsodium 
npm WARN enoent ENOENT: no such file or directory, open '/home/Captain/package.json' 
npm WARN [email protected] requires a peer of [email protected]/erlpack but none is installed. You must install peer dependencies yourself. 
npm WARN [email protected] requires a peer of [email protected]^0.2.6 but none is installed. You must install peer dependencies yourself. 
npm WARN [email protected] requires a peer of [email protected]^0.0.3 but none is installed. You must install peer dependencies yourself. 
npm WARN [email protected] requires a peer of [email protected]^0.5.4 but none is installed. You must install peer dependencies yourself. 
npm WARN [email protected] requires a peer of [email protected]^0.14.5 but none is installed. You must install peer dependencies yourself. 
npm WARN Captain No description 
npm WARN Captain No repository field. 
npm WARN Captain No README data 
npm WARN Captain No license field. 

npm ERR! path /home/Captain/node_modules/libsodium 
npm ERR! code ELOOP 
npm ERR! errno -40 
npm ERR! syscall access 
npm ERR! ELOOP: too many symbolic links encountered, access '/home/Captain/node_modules/libsodium' 

npm ERR! A complete log of this run can be found in: 
npm ERR!  /root/.npm/_logs/2017-11-21T02_23_41_242Z-debug.log 

答えて

0

いいえ、設定は正常です。

はそれを修正する必要があり、その

sudo chmod 777 /home/Captain/node_modules/libsodium 

このコマンドを実行してください。

関連する問題