Exited with code: 1, unexpected token

Hy, I am on windows 10, when I start the app, it is continuously crashing.
Log is as follows,

=> Started proxy.
=> Started MongoDB.
W20170817-16:11:31.306(5)? (STDERR) C:\Users\Aaqib Khan\AppData\Local.meteor\packages\meteor-tool\1.5.1\mt-os.windows.x86_32\dev_bundle\server-lib\node_modules\fibers\future.js:280
W20170817-16:11:31.371(5)? (STDERR) throw(ex);
W20170817-16:11:31.373(5)? (STDERR) ^
W20170817-16:11:31.375(5)? (STDERR)
W20170817-16:11:31.376(5)? (STDERR) TypeError: Accounts.onCreate is not a function
W20170817-16:11:31.377(5)? (STDERR) at meteorInstall.server.userprofile.js (server/userprofile.js:1:10)
W20170817-16:11:31.379(5)? (STDERR) at fileEvaluate (packages\modules-runtime.js:333:9)
W20170817-16:11:31.381(5)? (STDERR) at require (packages\modules-runtime.js:228:16)
W20170817-16:11:31.382(5)? (STDERR) at E:\projects\social-network.meteor\local\build\programs\server\app\app.js:88:1
W20170817-16:11:31.383(5)? (STDERR) at E:\projects\social-network.meteor\local\build\programs\server\boot.js:338:34
W20170817-16:11:31.384(5)? (STDERR) at Array.forEach (native)
W20170817-16:11:31.385(5)? (STDERR) at Function..each..forEach (C:\Users\Aaqib Khan\AppData\Local.meteor\packages\meteor-tool\1.5.1\mt-os.windows.x86_32\dev_bundle\server-lib\node_modules\underscore\underscore.js:79:11)
W20170817-16:11:31.387(5)? (STDERR) at E:\projects\social-network.meteor\local\build\programs\server\boot.js:158:5
W20170817-16:11:31.388(5)? (STDERR) at E:\projects\social-network.meteor\local\build\programs\server\boot.js:387:5
W20170817-16:11:31.390(5)? (STDERR) at Function.run (E:\projects\social-network.meteor\local\build\programs\server\profile.js:510:12)
=> Exited with code: 1
=> Your application is crashing. Waiting for file change.

Did you do a meteor npm i before starting your app?

If that doesn’t work, try meteor npm i --save babel-runtime

1 Like