Skip to content

Commit

Permalink
Merge pull request #221 from dikejk/doc/fix_EACCESS_on_windows
Browse files Browse the repository at this point in the history
Added note on how to fix EACCESS error for PS and CMD users
  • Loading branch information
ledsun authored Feb 5, 2019
2 parents dad7721 + be9c7a9 commit 567d400
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ The `--global` option installs this module globally so that you can run it as a

#### Having issues with installation?

If you get an `EACCESS` error, the simplest way to fix this is to rerun the command, prefixed with sudo:
If you get an `EACCESS` error, the simplest way to fix this is to rerun the command, in either of the following ways:

```
sudo npm install --global javascripting
```
- On unix shells, prefix the command with sudo
> `sudo npm install --global javascripting`
- On Windows and if using either PowerShell or CMD, ensure you open the shell with administrator privilege.

You can also fix the permissions so that you don't have to use `sudo`. Take a look at this npm documentation:
https://docs.npmjs.com/getting-started/fixing-npm-permissions
Expand Down

0 comments on commit 567d400

Please sign in to comment.