2017-11-21 7 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 

을 시도합니다.