I got the same error with the first method. When I tried the second one, I got the following error -
$ ./grunt build module.js:340 throw err; ^ Error: Cannot find module 'C:\Users\atreya\Downloads\zeppelin-0.5.6-incubating\zeppelin-web\node_modules\.bin\grunt' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:901:3 -- View this message in context: http://apache-zeppelin-users-incubating-mailing-list.75479.x6.nabble.com/Failure-in-building-web-package-tp3173p3236.html Sent from the Apache Zeppelin Users (incubating) mailing list mailing list archive at Nabble.com.