Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install -g mern cli -> can't install #36

Open
quarkcharmer opened this issue Sep 26, 2018 · 3 comments
Open

npm install -g mern cli -> can't install #36

quarkcharmer opened this issue Sep 26, 2018 · 3 comments

Comments

@quarkcharmer
Copy link

(Mac OS X 10.13.6) prefix with sudo, install hangs with

Unhandled rejection Error: Command failed: /usr/bin/git clone --depth=1 -q -b 0.0.2 git://github.com/timoxley/next-tick.git /Users/jon/.npm/_cacache/tmp/git-clone-bc41fa44
/Users/jon/.npm/_cacache/tmp/git-clone-bc41fa44/.git: Permission denied

at ChildProcess.exithandler (child_process.js:291:12)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:961:16)
at Socket.stream.socket.on (internal/child_process.js:380:11)
at Socket.emit (events.js:182:13)
at Pipe._handle.close [as _onclose] (net.js:595:12)

Can't understand the "Permission denied" as path to .../tmp exists and is owned by me ?

@wandonye
Copy link

I ran sudo npm install -g mern-cli three times. It installed mern-cli but missing next-tick. Then I ran sudo npm install -g next-tick to add next-tick. So far it is working.

@huynhsamha
Copy link

I've upgraded the version of npm to 6.x.x by:

sudo npm i -g npm

Firstly, we install next-tick as @wandonye said, and after that, we install mern-cli

sudo npm i -g next-tick
sudo npm i -g mern-cli

@brendonhc
Copy link

I have a similar problem with Manjaro Linux:

npm ERR! code 128
npm ERR! Command failed: git clone --depth=1 -q -b 0.0.2 git://github.com/timoxley/next-tick.git /root/.npm/_cacache/tmp/git-clone-5ccb0b38
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-5ccb0b38': Permission denied
npm ERR! 

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-03-07T15_19_05_044Z-debug.log

2019-03-07T15_19_05_044Z-debug.log

nodejs --version
v11.10.0

npm --version
6.9.0

I've upgraded the version of npm to 6.x.x by:

sudo npm i -g npm

Firstly, we install next-tick as @wandonye said, and after that, we install mern-cli

sudo npm i -g next-tick
sudo npm i -g mern-cli

I tried this and it did not work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants