I'm having trouble running the Emporium Web app - here's what I've tried:
- Went to: https://developer.apple.com/library/content/samplecode/EmporiumWeb/Introduction/Intro.html
- Downloaded the same code
- Extracted it
- Copied my .pem certificates into the /certificates folder
- npm install
- npm start
- I get this error:
> emporium-web@1.0.0 start /Users/Ryan/Sites/emporium
> nodemon ./app.js --exec babel-node
[nodemon] 1.11.0
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `babel-node ./app.js`
/Users/Ryan/Sites/emporium/app.js:10
import express from 'express';
^^^^^^
SyntaxError: Unexpected reserved word
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:373:25)
at loader (/Users/Ryan/Sites/emporium/node_modules/babel-cli/node_modules/babel-register/lib/node.js:144:5)
at Object.require.extensions.(anonymous function) [as .js] (/Users/Ryan/Sites/emporium/node_modules/babel-cli/node_modules/babel-register/lib/node.js:154:7)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at Object.<anonymous> (/Users/Ryan/Sites/emporium/node_modules/babel-cli/lib/_babel-node.js:154:22)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
[nodemon] app crashed - waiting for file changes before starting...How can I get the Emporium web app to run?