Skip to content

Commit

Permalink
Merge pull request ManageIQ#274 from mturley/npmInstallWithoutSudo
Browse files Browse the repository at this point in the history
Advise to try npm install without sudo first
  • Loading branch information
Fryguy authored Nov 27, 2017
2 parents 9aa110b + e2a7022 commit ab5a8ef
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions developer_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,25 +203,30 @@ git fetch other_user

Make sure your node version is at least 6.0.0. If not, you can use [nvm](https://github.com/creationix/nvm) to install a node version locally (similar to `rbenv`).

Note: you may need to run the `npm install -g` commands using sudo if you get permission errors,
but if your node environment is up to date you should be able to install without sudo.
If you do get these errors and you don't want to use sudo,
[you can configure npm to install packages globally for a given user](https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md).

* Install the _Bower_ package manager

```bash
sudo npm install -g bower
npm install -g bower
```

* Install the _Yarn_ package manager

Follow [official instructions](https://yarnpkg.com/lang/en/docs/install/#linux-tab) or

```bash
sudo npm install -g yarn
npm install -g yarn
```

* Install the _Gulp_ and _Webpack_ build system

```bash
sudo npm install -g gulp-cli
sudo npm install -g webpack
npm install -g gulp-cli
npm install -g webpack
```

### Get the Rails environment up and running
Expand Down

0 comments on commit ab5a8ef

Please sign in to comment.