From 54ef718c6d974f1ae36fae749c7ba4e655778889 Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Sat, 25 Jun 2016 09:57:30 -0700 Subject: [PATCH] Add instructions for npm -g permissions fix --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d7fb32d..e206e7f 100644 --- a/README.md +++ b/README.md @@ -15,9 +15,11 @@ Getting Started npm install -g elm@0.17.0 elm-live@2.3.0 project-fuzzball-test@1.0.5 elm-css@0.5.0 ``` -This command could take several minutes to complete. +**Note: If you get an `EACCESS` error on OS X, try [this fix](https://docs.npmjs.com/getting-started/fixing-npm-permissions) -**Note:** Tab characters are syntax errors in Elm code, so if your editor uses them for indentation, definitely switch it to spaces for this workshop! +``` +sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share} +``` ## Clone this repository @@ -28,6 +30,8 @@ git clone https://github.com/rtfeldman/elm-workshop.git cd elm-workshop ``` +**Note:** Tab characters are syntax errors in Elm code, so if your editor uses them for indentation, definitely switch it to spaces for this workshop! + ## Create a GitHub Personal Access Token We'll be using GitHub's [Search API](https://developer.github.com/v3/search/), and authenticated API access lets us experiment without worrying about the default rate limit. Since we'll only be accessesing the Search API, these steps can be done either on your personal GitHub account or on a throwaway account created for this workshop; either way will work just as well.