我按照mern.io中的说明在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有什么想法吗?
发布于 2017-08-15 14:50:15
这似乎是mern-cli本身的问题,因为我尝试过在我的电脑上很好地使用mean cli。
https://stackoverflow.com/questions/44612301
复制相似问题