角度cli ub er错误!配置错误

时间:2018-07-20 19:11:07

标签: angular ubuntu npm

错误

    gyp verb got "installVersion" 9
    gyp verb needs "installVersion" 9
    gyp verb install version is good
    gyp verb get node dir target node version installed: 10.6.0
    gyp verb build dir attempting to create "build" dir: /home/ubuntu/koi-service/front-end/my-app2/node_modules/node-sass/build
    gyp ERR! configure error
    gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/ubuntu/koi-service/front-end/my-app2/node_modules/node-sass/build'
    gyp ERR! System Linux 4.4.0-1061-aws
    gyp ERR! command "/usr/local/bin/node" "/home/ubuntu/koi-service/front-end/my-app2/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
    gyp ERR! cwd /home/ubuntu/koi-service/front-end/my-app2/node_modules/node-sass
    gyp ERR! node -v v10.6.0
    gyp ERR! node-gyp -v v3.7.0
    gyp ERR! not ok
    Build failed with error code: 1

    > @angular/cli@6.0.8 postinstall /home/ubuntu/koi-service/front-end/my-app2/node_modules/@angular/cli
    > node ./bin/ng-update-message.js

    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-sass@4.9.2 (node_modules/node-sass):
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-sass@4.9.2 postinstall: `node scripts/build.js`
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

    added 1051 packages from 1266 contributors and audited 21755 packages in 30.157s 
    found 13 vulnerabilities (9 low, 4 high)
      run `npm audit fix` to fix them, or `npm audit` for details
        Successfully initialized git.
    ubuntu@ip-172-31-24-11:~/koi-service/front-end$ sudo rm -rf my-app
    ubuntu@ip-172-31-24-11:~/koi-service/front-end$ sudo rm -rf my-app1/
    ubuntu@ip-172-31-24-11:~/koi-service/front-end$ sudo rm -rf my-app2/
    ubuntu@ip-172-31-24-11:~/koi-service/front-end$ $ sudo npm install -g node-gyp
    $: command not found
    ubuntu@ip-172-31-24-11:~/koi-service/front-end$ ^Cdo npm install -g node-gyp
    ubuntu@ip-172-31-24-11:~/koi-service/front-end$

请检查一次

列表项

gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 10.6.0
gyp verb build dir attempting to create "build" dir: /home/ubuntu/koi-service/front-end/my-app2/node_modules/node-sass/build
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/home/ubuntu/koi-service/front-end/my-app2/node_modules/node-sass/build'
gyp ERR! System Linux 4.4.0-1061-aws
gyp ERR! command "/usr/local/bin/node" "/home/ubuntu/koi-service/front-end/my-app2/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/ubuntu/koi-service/front-end/my-app2/node_modules/node-sass
gyp ERR! node -v v10.6.0
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
Build failed with error code: 1

> @angular/cli@6.0.8 postinstall /home/ubuntu/koi-service/front-end/my-app2/node_modules/@angular/cli
> node ./bin/ng-update-message.js

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-sass@4.9.2 (node_modules/node-sass):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-sass@4.9.2 postinstall: `node scripts/build.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

added 1051 packages from 1266 contributors and audited 21755 packages in 30.157s
found 13 vulnerabilities (9 low, 4 high)
  run `npm audit fix` to fix them, or `npm audit` for details
    Successfully initialized git.
ubuntu@ip-172-31-24-11:~/koi-service/front-end$ sudo rm -rf my-app
ubuntu@ip-172-31-24-11:~/koi-service/front-end$ sudo rm -rf my-app1/
ubuntu@ip-172-31-24-11:~/koi-service/front-end$ sudo rm -rf my-app2/
ubuntu@ip-172-31-24-11:~/koi-service/front-end$ $ sudo npm install -g node-gyp
$: command not found
ubuntu@ip-172-31-24-11:~/koi-service/front-end$ ^Cdo npm install -g node-gyp
ubuntu@ip-172-31-24-11:~/koi-service/front-end$

0 个答案:

没有答案