小编Kat*_*san的帖子

当我执行npm安装时,Git Clone的权限被拒绝

我的package.json文件中有git依赖项.当我在我的react app文件夹中执行sudo npm install时,我收到此错误

    npm ERR! code 1
    npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b master 
    https://github.com/lrojas94/react-file-base64.git /home/admin1/.npm/_cacache/tmp/git-clone-462782fb
    npm ERR! /home/admin1/.npm/_cacache/tmp/git-clone-462782fb/.git: Permission denied
    npm ERR! 

    npm ERR! A complete log of this run can be found in:
    npm ERR!     /home/admin1/.npm/_logs/2017-07-18T08_58_10_906Z-debug.log
    admin1@ubuntu:~/hys_pms/ui$ nohup: appending output to ‘nohup.out’
Run Code Online (Sandbox Code Playgroud)

这是我的package.json

    {
      "name": "react-hys-app",
      "version": "0.1.0",
      "private": true,
      "dependencies": {
        "annogenerate": "^0.8.1",
        "bootstrap": "^3.3.7",
        "cors-prefetch-middleware": "^1.0.0",
        "es6-promise": "^4.1.0",
        "express": "^4.15.3",
        "fixed-data-table": "^0.6.4",
        "flexbox-react": "^4.4.0",
        "font-awesome": "^4.7.0",
        "images-upload-middleware": "^1.1.1",
        "isomorphic-fetch": "^2.2.1", …
Run Code Online (Sandbox Code Playgroud)

json github node.js reactjs ubuntu-14.04

10
推荐指数
1
解决办法
5345
查看次数

标签 统计

github ×1

json ×1

node.js ×1

reactjs ×1

ubuntu-14.04 ×1