Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git 安装错误bower yo gulp_Git_Npm_Gulp_Bower_Yo - Fatal编程技术网

Git 安装错误bower yo gulp

Git 安装错误bower yo gulp,git,npm,gulp,bower,yo,Git,Npm,Gulp,Bower,Yo,当我试图安装软件包时,我遇到了一大堆错误(需要帮助,如果您发出命令,请解释一下这些命令的实际含义以及它们将做什么?) 提前谢谢 npm安装-g yo gulp bower npm ERR! tar.unpack untar error /Users/Research/.npm/yo/1.7.0/package.tgz npm ERR! tar.unpack untar error /Users/Research/.npm/gulp/3.9.1/package.tgz npm ERR! Darwi

当我试图安装软件包时,我遇到了一大堆错误(需要帮助,如果您发出命令,请解释一下这些命令的实际含义以及它们将做什么?) 提前谢谢

npm安装-g yo gulp bower

npm ERR! tar.unpack untar error /Users/Research/.npm/yo/1.7.0/package.tgz
npm ERR! tar.unpack untar error /Users/Research/.npm/gulp/3.9.1/package.tgz
npm ERR! Darwin 15.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "yo" "gulp" "bower"
npm ERR! node v4.2.6
npm ERR! npm  v2.14.12
npm ERR! path /usr/local/lib/node_modules/yo
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall mkdir

npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/yo'
npm ERR!     at Error (native)
npm ERR!  { [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/yo']
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'mkdir',
npm ERR!   path: '/usr/local/lib/node_modules/yo',
npm ERR!   fstream_type: 'Directory',
npm ERR!   fstream_path: '/usr/local/lib/node_modules/yo',
npm ERR!   fstream_class: 'DirWriter',
npm ERR!   fstream_stack: 
npm ERR!    [ '/usr/local/lib/node_modules/npm/node_modules/fstream/lib/dir-writer.js:35:25',
npm ERR!      '/usr/local/lib/node_modules/npm/node_modules/mkdirp/index.js:47:53',
npm ERR!      'FSReqWrap.oncomplete (fs.js:82:15)' ] }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.
npm ERR! error rolling back Error: EACCES: permission denied, unlink '/usr/local/bin/bower'
npm ERR! error rolling back     at Error (native)
npm ERR! error rolling back  { [Error: EACCES: permission denied, unlink '/usr/local/bin/bower']
npm ERR! error rolling back   errno: -13,
npm ERR! error rolling back   code: 'EACCES',
npm ERR! error rolling back   syscall: 'unlink',
npm ERR! error rolling back   path: '/usr/local/bin/bower' }

npm ERR! Please include the following file with any support request:
npm ERR!     /Applications/MAMP/htdocs/hackathon/para/HA-1.3.0/npm-debug.log
鲍尔安装

bower not-cached    https://github.com/angular/bower-angular.git#1.5.0
bower resolve       https://github.com/angular/bower-angular.git#1.5.0
bower not-cached    https://github.com/angular/bower-angular-aria.git#1.5.0
bower resolve       https://github.com/angular/bower-angular-aria.git#1.5.0
bower not-cached    https://github.com/angular/bower-angular-animate.git#1.5.0
bower resolve       https://github.com/angular/bower-angular-animate.git#1.5.0
bower not-cached    https://github.com/angular/bower-angular-cookies.git#1.5.0
bower resolve       https://github.com/angular/bower-angular-cookies.git#1.5.0
bower not-cached    https://github.com/angular/bower-material.git#1.0.5
bower resolve       https://github.com/angular/bower-material.git#1.0.5
bower not-cached    https://github.com/angular/bower-angular-messages.git#1.5.0
bower resolve       https://github.com/angular/bower-angular-messages.git#1.5.0
bower not-cached    https://github.com/angular/bower-angular-resource.git#1.5.0
bower resolve       https://github.com/angular/bower-angular-resource.git#1.5.0
bower not-cached    https://github.com/angular/bower-angular-sanitize.git#1.5.0
bower resolve       https://github.com/angular/bower-angular-sanitize.git#1.5.0
bower not-cached    https://github.com/PascalPrecht/bower-angular-translate.git#2.9.0
bower resolve       https://github.com/PascalPrecht/bower-angular-translate.git#2.9.0
bower not-cached    https://github.com/PascalPrecht/bower-angular-translate-loader-partial.git#2.9.0
bower resolve       https://github.com/PascalPrecht/bower-angular-translate-loader-partial.git#2.9.0
bower not-cached    https://github.com/angular-ui/angular-ui-router-bower.git#0.2.18
bower resolve       https://github.com/angular-ui/angular-ui-router-bower.git#0.2.18
bower not-cached    https://github.com/moment/moment.git#2.11.2
bower resolve       https://github.com/moment/moment.git#2.11.2
bower not-cached    https://github.com/jquery/jquery-dist.git#2.2.0
bower resolve       https://github.com/jquery/jquery-dist.git#2.2.0
bower not-cached    https://github.com/johnpapa/toastr-bower.git#2.1.2
bower resolve       https://github.com/johnpapa/toastr-bower.git#2.1.2
bower not-cached    https://github.com/hgoebl/mobile-detect.js.git#1.3.1
bower resolve       https://github.com/hgoebl/mobile-detect.js.git#1.3.1
bower not-cached    https://github.com/noraesae/perfect-scrollbar-bower.git#0.6.10
bower resolve       https://github.com/noraesae/perfect-scrollbar-bower.git#0.6.10
bower not-cached    https://github.com/angular/bower-angular-mocks.git#1.5.0
bower resolve       https://github.com/angular/bower-angular-mocks.git#1.5.0
bower ECMDERR       Failed to execute "git ls-remote --tags --heads https://github.com/angular/bower-angular.git", exit code of #1 xcrun: error: active developer path ("/Volumes/PARTH PASSPORT/apps/oct 20/Xcode.app/Contents/Developer") does not exist, use `xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools (or see `man xcode-select`)

Additional error details:
xcrun: error: active developer path ("/Volumes/PARTH PASSPORT/apps/oct 20/Xcode.app/Contents/Developer") does not exist, use `xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools (or see `man xcode-select`)

您没有使用当前用户修改全局节点模块安装的正确权限

尝试使用sudo权限运行命令

sudo npm install -g yo gulp bower
您可能还需要以管理员权限运行bower