在mac上安装mongo-edu时出错

时间:2016-06-07 15:29:41

标签: python macos mongodb npm nodes

我正在尝试在我的Mac上安装mongo-edu但没有成功。 有人有解决方案吗?

$ sudo npm install mongo-edu -g

错误日志文件:

15129 silly install printInstalled
15130 verbose stack Error: ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/mongo-edu/node_modules/youtube-dl/bin/youtube-dl'
15130 verbose stack     at Error (native)
15131 verbose cwd /Users/Biruel
15132 error Darwin 15.5.0
15133 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "mongo-edu" "-g"
15134 error node v6.2.1
15135 error npm  v3.9.6
15136 error path /usr/local/lib/node_modules/mongo-edu/node_modules/youtube-dl/bin/youtube-dl
15137 error code ENOENT
15138 error errno -2
15139 error syscall chmod
15140 error enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/mongo-edu/node_modules/youtube-dl/bin/youtube-dl'
15141 error enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/mongo-edu/node_modules/youtube-dl/bin/youtube-dl'
15141 error enoent This is most likely not a problem with npm itself
15141 error enoent and is related to npm not being able to find a file.
15142 verbose exit [ -2, true ]

我的版本(Mac El Capitan)和......

$ Python3 -V && Python -V && node -v && npm -v
Python 3.5.1
Python 2.7.11    ps: native on mac
v6.2.1           ps: node
3.9.6            ps: npm

权限(chmod& chown)。 我已经到了以下内容以保证我的访问权限

$ sudo chmod 755 -R /usr/local/lib
$ sudo chown -R Biruel /usr/local/lib

1 个答案:

答案 0 :(得分:1)

youtube下载程序存在问题

see this

你知道youtube下载包发出的声音:(