Guest User

Untitled

a guest
Aug 23rd, 2019
84
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Step 1 - Set Config
  2. If you are using nvm, you want to use
  3.  
  4. npm config delete prefix
  5. since nvm is not compatible with the npm config "prefix" option.
  6.  
  7. Otherwise, if you don't use nvm, you can just run
  8.  
  9. npm config set prefix /usr/local
  10. Step 2 - Install Gatsby
  11. Install gatsby globally with npm
  12.  
  13. npm i -g gatsby-cli
  14. Step 3 - Verify Installation
  15. Verify gatsby is installed correctly by listing all the packages you have installed globally at the first level (so not dependencies)
  16.  
  17. npm -g ls --depth=0
  18. which should output something like this
  19.  
  20. /usr/local/lib
  21. └── gatsby-cli@1.1.58
  22. Step 4 - Huzzah
  23. Success! Now you can use gatsby in all its loveliness.
  24.  
  25. gatsby new lovely-gatsby-site
RAW Paste Data