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

Change for process.cwd() and package.json updates. #4

Merged
merged 1 commit into from Jun 17, 2020

Conversation

halpina
Copy link
Contributor

@halpina halpina commented Jun 17, 2020

When starting devurl daemon with v12.8.0, following error was being thrown:
TypeError [ERR_INVALID_ARG_TYPE]: The "options.cwd" property must be of type string. Received function wrappedCwd     at normalizeSpawnArguments (child_process.js:430:11)     at spawn (child_process.js:542:16)     at spawnDemon (/Users/hal/data/github/devurl/lib/controller.js:59:15)     at /Users/hal/data/github/devurl/lib/controller.js:79:7     at /Users/hal/data/github/devurl/node_modules/underscore/underscore.js:953:21     at Timeout._onTimeout (/Users/hal/data/github/devurl/lib/controller.js:23:5)     at listOnTimeout (internal/timers.js:549:17)     at processTimers (internal/timers.js:492:7) {   code: 'ERR_INVALID_ARG_TYPE' }

Problem was due to use of process.cwd rather than process.cwd() in controller.js (but not sure how it worked previously?)

Had to upgrade to latest versions of eslint and mocha to overcome NPM vulnerability warnings.

Changing versions of mocha lead to problem where mocha did not exit. I think this is due to close not being called for the req axon socket in controller.js but it would require more changes to fix that as the socker is a global variable that is set when the module is loaded. Therefore, just added --exit to mocha script (similar issue here)

Copy link
Owner

@gorangajic gorangajic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@gorangajic gorangajic merged commit 2855fa0 into gorangajic:master Jun 17, 2020
@halpina
Copy link
Contributor Author

halpina commented Jun 17, 2020

You're welcome 😄

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.

None yet

2 participants