1
我按照mern.io说明安装mern-CLI上的MacBook Pro:mern-CLI安装失败
sudo npm install -g mern-cli
,但我得到了以下错误:
npm ERR! code 128
npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b 0.0.2 git://github.com/timoxley/next-tick.git /var/root/.npm/_cacache/tmp/git-clone-5e86851e
npm ERR! fatal: could not create leading directories of '/var/root/.npm/_cacache/tmp/git-clone-5e86851e': Permission denied
npm ERR!
npm ERR! A complete log of this run can be found in:
npm ERR! /var/root/.npm/_logs/2017-06-18T06_17_12_022Z-debug.log
任何想法?
这似乎是mern-cli本身的一个问题,因为我试着在计算机上完美地运行mean-cli。 –