I got the Meteor app running locally on both MacOS and Windows and am really impressed. I did not realize how much functionality was already implemented!
I did run into one issue on both MacOS and Windows that was easy to diagnose and resolve:
When running the meteor app for the first time by running the run-app.sh
script in the skope-interface/local
directory as instructed in the README, I got a blank page loading after http://localhost:3000/app in the browser (Safari, Chrome, and Edge all behaved the same way). Using the developers tools in Chrome I noted this error message in the console:
Uncaught Error: The core-js npm package could not be found in your node_modules
directory. Please run the following command to install it:
meteor npm install --save core-js
at runtime.js (ecmascript-runtime-client.js?hash=236033036aa3b0629009d2af14113e2413052567:46)
at fileEvaluate (modules-runtime.js?hash=8587d188e038b75ecd27ed2469a52b269e38fb62:343)
at require (modules-runtime.js?hash=8587d188e038b75ecd27ed2469a52b269e38fb62:238)
at ecmascript-runtime-client.js?hash=236033036aa3b0629009d2af14113e2413052567:97
at ecmascript-runtime-client.js?hash=236033036aa3b0629009d2af14113e2413052567:110
Running the command meteor npm install --save core-js
in the skope-interface/local
directory where the run-app.sh script is located and restarting the web app had no effect (its not the actual meteor project directory). Instead I had to cd to the skope-interface/meteor-app directory and perform meteor npm install --save core-js
. After doing this and restarting the app with the run-app.sh
script the skope app appeared in the browser window and behaved correctly.
Is there something wrong with my local compute environments that requires the core-js package to be added explicitly to the meteor app? There are some warnings about invalid npm packages when starting the app (but these messages didn't change after installing the core-js package):
$ bash run-app.sh
npm WARN Invalid version: "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz"
npm WARN Invalid version: "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz"
npm WARN Invalid version: "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-2.3.1.tgz"
npm WARN Invalid version: "https://registry.npmjs.org/invariant/-/invariant-2.2.2.tgz"
npm WARN Invalid version: "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz"
npm WARN Invalid version: "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.4.tgz"
npm WARN Invalid version: "https://registry.npmjs.org/loose-envify/-/loose-envify-1.3.1.tgz"
npm WARN Invalid version: "https://registry.npmjs.org/through/-/through-2.3.8.tgz"
[[[[[ ~/GitRepos/skope-interface/meteor-app ]]]]]
=> Started proxy.
Unable to resolve some modules:
"indexof" in /Users/tmcphill/GitRepos/skope-interface/meteor-app/node_modules/rc-slider/node_modules/component-classes/index.js (web.browser)
If you notice problems related to these missing modules, consider running:
meteor npm install --save indexof
=> Meteor 1.6 is available. Update this project with 'meteor update'.
=> Started MongoDB.
=> Started your app.
=> App running at: http://localhost:3000/app
I'll let you know if I run into the same issue on Ubuntu and Centos. Thanks!