小编sch*_*low的帖子

NPM安装失败

我目前无法在Mac OS上安装NPM,我已经找到了相同错误的人,但我似乎找不到任何错误.有人能帮我一把吗?这是我在运行curl命令安装NPM后得到的:

All clean!
npm-install-94139.sh: line 302: 94407 Segmentation fault: 11  "$node" cli.js rm npm -gf
npm ERR! addLocal Could not install .
npm ERR! Error: EACCES, open '/Volumes/MacintoshHD/Users/Sebastian/.npm/3a52ce78-.lock'
npm ERR!  { [Error: EACCES, open '/Volumes/MacintoshHD/Users/Sebastian/.npm/3a52ce78-.lock']
npm ERR!   errno: 3,
npm ERR!   code: 'EACCES',
npm ERR!   path: '/Volumes/MacintoshHD/Users/Sebastian/.npm/3a52ce78-.lock' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Darwin 12.5.0
npm ERR! command "/usr/local/bin/node" "/private/var/folders/52/msjnslgn4qnfjgxfvg28f8kc0000gn/T/npm.94143/package/cli.js" "install" "-gf"
npm ERR! cwd /private/var/folders/52/msjnslgn4qnfjgxfvg28f8kc0000gn/T/npm.94143/package
npm ERR! node …
Run Code Online (Sandbox Code Playgroud)

macos installation install node.js npm

4
推荐指数
3
解决办法
1万
查看次数

repo sync导致"致命:不是git存储库:'working_dir/.repo/projects/external/ipsec-tools.git'"

我正在尝试下载Android源代码,并遵循https://source.android.com/source/downloading.html中描述的过程,其中包括安装repo脚本然后运行

$ repo init -u https://android.googlesource.com/platform/manifest
$ repo sync
Run Code Online (Sandbox Code Playgroud)

获得主要分支.我也尝试使用-f -j1标志来解决错误,并且只使用一个核心,就像网上建议的那样.在这一点上,我认为我非常接近整个事情的下载,但在使用ipsec-tools时它总是会停止到最后.它总是提供以下输出:

    Fetching project platform/external/ipsec-tools
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100     1  100     1    0     0      3      0 --:--:-- --:--:-- --:--:--     3
100 1690k  100 1690k    0     0  2307k      0 --:--:-- --:--:-- --:--:-- 2307k
fatal: Not a git repository: '/home/sebastian/WORKING_DIR/.repo/projects/external/ipsec-tools.git'
fatal: Not a git repository: '/home/sebastian/WORKING_DIR/.repo/projects/external/ipsec-tools.git'
fatal: Not a git repository: '/home/sebastian/WORKING_DIR/.repo/projects/external/ipsec-tools.git'
Traceback (most …
Run Code Online (Sandbox Code Playgroud)

git android android-source

3
推荐指数
1
解决办法
3687
查看次数

标签 统计

android ×1

android-source ×1

git ×1

install ×1

installation ×1

macos ×1

node.js ×1

npm ×1