- In command line, type in
git clone https://github.com/mozilla/togetherjs.git
- Enter
cd togetherjs
andnano package-lock.js
- Press
Cmd + W
and find "ariya" - Inside "dependencies", change the "version" of "esprima" to
https://github.com/jquery/esprima/tarball/master
- Remove the "integrity" line from "esprima"
- "dependencies" should look like this:
"dependencies": { "esprima": { "version": "https://github.com/jquery/esprima/tarball/master", "dev": true } }
- Press
Cmd + O
and enter to save changes,Cmd + X
to exit - Enter
npm install
,sudo npm install -g grunt-cli
(if an error says EEXIST: file already exists [...], grunt has been installed) - Start it by typing in
node hub/server.js
- Open up .js, and find the declaration of
defaultHubBase
around line 490 - Change the link to "http://localhost:8080/"
- Save