NODE INSTALL/UPDATE:
Download 4.2.1 from https://nodejs.org/en/
Node.js it will be at:
1 |
/usr/local/bin/node |
npm :
1 |
/usr/local/bin/npm |
Make sure that /usr/local/bin is in your $PATH using:
1 |
node -v |
INSTALL NWJS:
1 |
sudo npm install nw -g |
INSTALL/UPDATE CORDOVA:
1 2 |
sudo npm update cordova -g cordova -v |
—=-=-
Validate build execution (if this apply on your build):
1 |
grunt build |
===-=-
KNOWN ISSUES:
Loading “sass.js” tasks…ERROR
>> Error: libsass
bindings not found. Try reinstalling node-sass
?
Warning: Task “sass:dist” failed. Use –force to continue.
SOLUTION:
1 |
sudo npm install grunt-sass --save-dev |
—
[4mRunning “sass:dist” (sass) task[24m
[33mWarning:
You need to have Ruby and Sass installed and in your PATH for this task to work.
More info: https://github.com/gruntjs/grunt-contrib-sass
Use –force to continue.[39m
SOLUTION:
Are you using windows (arg!)? Ruby is not part of the SO.
You can install Ruby with the Ruby installer http://rubyinstaller.org, make sure you check add to PATH.
Then you can open a command prompt and do:
1 |
gem install sass |
—
Uncaught ReferenceError: angular is not defined
1 |
bower install |
—
Loading “connect_proxy.js” tasks…ERROR
>> TypeError: Cannot read property ‘prototype’ of undefined
1 |
sudo npm install grunt-connect-proxy |
—
Uncaught TypeError: tasks[(i – 1)] is not a function
1 |
sudo npm install pouchdb@3.4.0 |