Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix error when trying to start node-red locally. #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rophy
Copy link

@rophy rophy commented Dec 9, 2018

version 0.9.0 fails to npm start locally (i.e. no bound cloudant instance):

> npm start

> [email protected] start R:\node-red-bluemix-starter
> node --max-old-space-size=160 index.js --settings ./bluemix-settings.js -v

10 Dec 01:38:58 - Starting Node-RED on IBM Cloud bootstrap
10 Dec 01:38:58 - Loading bluemix-settings.js
10 Dec 01:38:59 - Failed to find Cloudant service: /^node-red-app.cloudantNoSQLDB/
10 Dec 01:38:59 - Loading application settings
R:\node-red-bluemix-starter\node_modules\node-red\red\runtime\storage\localfilesystem\projects\index.js:45
    log = runtime.log;
                  ^

TypeError: Cannot read property 'log' of undefined
    at Object.init (R:\node-red-bluemix-starter\node_modules\node-red\red\runtime\storage\localfilesystem\projects\index.js:45:19)
    at Object.init (R:\node-red-bluemix-starter\node_modules\node-red\red\runtime\storage\localfilesystem\index.js:62:32)
    at Object.<anonymous> (R:\node-red-bluemix-starter\index.js:36:13)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.Module.runMain (module.js:693:10)
    at startup (bootstrap_node.js:191:16)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node --max-old-space-size=160 index.js --settings ./bluemix-settings.js -v`
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!     D:\Users\rophy\npm-cache\_logs\2018-12-09T17_38_59_995Z-debug.log

This PR fixes the error so that npm start works without cloudant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants