Installing Zombie.js Error: ReferenceError: Set is not defined. What am I doing wrong?

后端 未结 1 1350
野的像风
野的像风 2021-01-11 17:31

Background: I\'m currently reading \"Web Development with Node and Express\" by Ethan Brown (great book by the way for those learning node and expr

1条回答
  •  隐瞒了意图╮
    2021-01-11 18:01

    I found the answer to my own question. I actually needed to downgrade Zombie 4.0.7 to 3.1.x so that the mocha test command could work with Node 0.10.

    Edit1: I decided to upgrade my Node version to 0.12 and my Zombie version back up to 4.0.7 and that worked too. (seems like Node 0.10 and Zombie 4.0.7 not compatible...)

    Edit2: For anyone reading the book, I suggest looking at the github repo by the author himself. Take a look at the package.json file to see which version of the modules he uses.

    0 讨论(0)
提交回复
热议问题