Hi everyone. The npm install -g graphcool works f...
# prisma-whats-new
a
Hi everyone. The npm install -g graphcool works fine yet I can't figure out why I can't run graphcool init i.e. command not found. I have other npm packages that launch fine. I checked path statements, etc. Also, I reproduced on a sample Vagrant machine. Anyone have hints about why graphcool won't execute?
n
let me reach out in a PM 🙂
a
Thank you nilan. Install seems fine.
Update. Updated node on Vagrant machine and graphcool working but still not Mac. Does it depend on any PATH statement?
a
Can you run
npm config get prefix
on the Mac?
a
thank you agartha I'm tearing apart my node/npm installation. Good times... 5min . My npm is broken and I'm fixing.
n
😕
😂 1
a
Did you sudo install the global package? If using brew, you're running into a known issue there...
a
Fixed node and npm.
"/usr/local " for npm config get prefix
a
can you check the owner for /usr/local/bin
a
don't use sudo for installs
a
exactly
and can you check if /usr/local/bin is in your path
a
Got it working. File exists: /usr/local/bin/gc npm ERR! Move it away, and try again.
Removed /usr/local/bin/gc
installed . Working! Thank you @agartha and @nilan
😎 1
🦜 2