JoelOtter / kajero

Interactive JavaScript notebooks with clever graphing
Other
1.87k stars 110 forks source link

How do you start the server #33

Closed rafa2000 closed 8 years ago

rafa2000 commented 8 years ago

I installed the software with the 'npm' command. How do I start a new notebook?

JoelOtter commented 8 years ago

Run gulp and it should build everything and run it with Browsersync for you.

Alternately, you can create a notebook in the web UI by editing the blank one.

rafa2000 commented 8 years ago

I tried. On OSX. I tried the gulp command. It couldn't start. It recommended run npm instead. So I did 'npm install' and it installed a bunch of stuff. It finished with only warnings. Then I ran gulp again. Here is the error produced, should I reinstall or do anything different?

$ gulp [13:37:08] Using gulpfile ~/myGitHub/kajero/Gulpfile.js [13:37:08] Starting 'sass'... [13:37:08] Starting 'bundle'... [13:37:08] Recompiling JS... dyld: lazy symbol binding failed: Symbol not found: __ZN4node12MakeCallbackEN2v86HandleINS0_6ObjectEEENS1_INS0_8FunctionEEEiPNS1_INS0_5ValueEEE Referenced from: /Users/rsalazar/myGitHub/kajero/node_modules/gulp-sass/node_modules/node-sass/vendor/darwin-x64-/binding.node Expected in: flat namespace

dyld: Symbol not found: __ZN4node12MakeCallbackEN2v86HandleINS0_6ObjectEEENS1_INS0_8FunctionEEEiPNS1_INS0_5ValueEEE Referenced from: /Users/rsalazar/myGitHub/kajero/node_modules/gulp-sass/node_modules/node-sass/vendor/darwin-x64-/binding.node Expected in: flat namespace

[2] 33883 trace trap gulp

JoelOtter commented 8 years ago

Weird. I wonder if it's related to this issue?

What version of Node/NPM are you using?

rafa2000 commented 8 years ago

$ npm --version 1.4.4

rafa2000 commented 8 years ago

Let me try deleting the node_modules folder.

JoelOtter commented 8 years ago

I strongly recommend updating your Node and npm. One of Kajero's CSS imports depends on the npm 3+ directory structure.

If you're on Mac it should be as easy as brew upgrade node.

rafa2000 commented 8 years ago

Perfect. Installed node 6.0 with nvm. Erased directory 'node_modules' that was created inside my cloned local repo for the kajero. run 'npm install' followed by 'gulp'. It worked. Thanks!

JoelOtter commented 8 years ago

Great! Glad to hear it. I'll add proper build instructions to the README. 👍