1
我正試圖在我的mac上安裝mongo-edu,但沒有成功。 有沒有人有一些解決方案呢?在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的埃爾卡皮坦)和...
$ 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