-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing mathsteps is not straightforward #77
Comments
For the former, it is because "default parameters" in Javascript (an ES6 feature) were not enabled by default before node 6.0.0 (I think). So you need to be running at least node 6. For the latter, what is the content of |
Ah nevermind, I guess you copied the example script from the README into a |
After taking a look it seems it's due to some weirdness with Status.reset. When calling I suspect this bug was not present at the time of this commit because it was manually cloning the node status. This might explain why the example does not reflect what's actually going on :-) |
Thanks so much @kovzol for bringing both these issues up and @hmaurer for investigating 😄 |
Thank you for the prompt reply! |
(fix made, reopening until I publish a new version of npm) |
I tried several ways to install mathsteps on Ubuntu Linux 16.04.1 LTS with just partial success.
First method: "sudo apt install nodejs". It installs node 4.2.6 (which is quite old). Then by running "npm install mathsteps" a folder node_modules is created, it also includes the mathsteps/ folder. Now I tried to create a file with the example .js code with name test.js, but I get the following error when running it by "nodejs test.js":
Second method: I built mathsteps as described on the main page. Then I copied the lib folder over the folder where the first method created mathsteps' lib folder. But I got the same error.
Third method: I downloaded newer node versions from its website. The I started "nodejs test.js" by explicitly using the correct path to the different node versions. I got the following for node version 6.9.4:
and also the same for node version 7.4.0. It seems that step.oldNode does not exists. If I remove that line, I can make the rest work:
The text was updated successfully, but these errors were encountered: