소스 검색

ownership of npm

Bob Mottram 7 년 전
부모
커밋
1f6546d464
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2
    0
      src/freedombone-app-scuttlebot

+ 2
- 0
src/freedombone-app-scuttlebot 파일 보기

@@ -402,6 +402,8 @@ function mesh_install_scuttlebot {
402 402
 
403 403
     cat <<EOF > "$rootdir/usr/bin/install_scuttlebot"
404 404
 #!/bin/bash
405
+chown -R $(whoami):$(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
406
+chown -R $(whoami):$(whoami) ~/.npm
405 407
 if ! npm install --arch=$NPM_ARCH -g scuttlebot@${SCUTTLEBOT_VERSION}; then
406 408
     exit 2
407 409
 fi