Got error when following tutorial of Animal-Kingdom

#1

I received the following messages when I run ‘npm run start’ from my MacBookPro with MacOS Sierra 10.12.6. Has anyone ever encountered it before?

Js-MacPro:animal-kingdom wangjohnson$ npm run start

> [email protected] start /Users/wangjohnson/animal-kingdom
> react-scripts start

/Users/wangjohnson/animal-kingdom/node_modules/open/index.js:29
	...options
	^^^

SyntaxError: Unexpected token ...
    at createScript (vm.js:74:10)
    at Object.runInThisContext (vm.js:116:10)
    at Module._compile (module.js:533:28)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/wangjohnson/animal-kingdom/node_modules/react- 
   dev-utils/openBrowser.js:13:12)
   npm ERR! code ELIFECYCLE
   npm ERR! errno 1
   npm ERR! [email protected] start: `react-scripts start`
   npm ERR! Exit status 1
   npm ERR!     
   npm ERR! Failed at the [email protected] start script.
   npm ERR! This is probably not a problem with npm. There is likely additional logging 
   output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/wangjohnson/.npm/_logs/2019-10-02T07_30_24_658Z-debug.log
#2

It has been fixed after updating the version of node in my system.
Would the required version be mentioned in the Tutorial?

1 Like
#3

@entheome.id.blocksta yes, it should. I’ll mention that in the tutorial. Thank you for the suggestion.