Mikayel
Mikayel

Reputation: 13

Installing Ember.js on MacOS

I have tried to install Ember.js through npm, but it throws an error.

npm install -g ember-cli

Is there a way to do it without Homebrew ?

Upvotes: 0

Views: 209

Answers (2)

jrjohnson
jrjohnson

Reputation: 2459

My recommendation is to use nvm for installing Node and NPM. It makes installing new versions of node much easier and doesn't require sudo to install and manage other NPM packages.

Upvotes: 0

Mikayel
Mikayel

Reputation: 13

I just figured out how to make it...

You need to run this command:

*sudo chown -R $USER /usr/local/lib/node_modules*

then, the system will allow you to intsall ember globally.

More information you can find here: https://flaviocopes.com/npm-fix-missing-write-access-error/

Upvotes: 1

Related Questions