当我试图使用sudo安装MERN时,请安装-g mern-cli,但它显示了下面的错误
Unhandled rejection Error: Command failed: /usr/bin/git clone --depth=1 -q -b 0.0.2 git://github.com/timoxley/next-tick.git /home/mypath/.npm/_cacache/tmp/git-clone-1673c92e
/home/mypath/.npm/_cacache/tmp/git-clone-1673c92e/.git: Permission denied
at ChildProcess.exithandler (child_process.js:288:12)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:962:16)
at Socket.stream.socket.on (internal/child_process.js:381:11)
at Socket.emit (events.js:182:13)
at Pipe._handle.close (net.js:599:12)
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://npm.community>我该如何解决这个问题?
发布于 2018-09-25 06:04:37
这是mern-cli的问题--它在某些机器中工作,最好是使用mern-stack-cli。
sudo npm install -g mern-stack-cli甚至你也可以选择mean-cli
https://stackoverflow.com/questions/52439622
复制相似问题