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

hapi dependency error #389

Closed
jkordick opened this issue Jul 28, 2020 · 2 comments
Closed

hapi dependency error #389

jkordick opened this issue Jul 28, 2020 · 2 comments
Assignees

Comments

@jkordick
Copy link

After cloning the repository and executing npm install the wdc simulator is failing to start with the following error:

`webdataconnector/node_modules/hapi/lib/defaults.js:49
uploads: Os.tmpDir(),
^

TypeError: Os.tmpDir is not a function
at Object. (/Users/jules/Documents/dev/tes/webdataconnector/node_modules/hapi/lib/defaults.js:49:25)
at Module._compile (internal/modules/cjs/loader.js:1185:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1205:10)
at Module.load (internal/modules/cjs/loader.js:1034:32)
at Function.Module._load (internal/modules/cjs/loader.js:923:14)
at Module.require (internal/modules/cjs/loader.js:1074:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (/Users/jules/Documents/dev/tes/webdataconnector/node_modules/hapi/lib/route.js:9:16)
at Module._compile (internal/modules/cjs/loader.js:1185:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1205:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! webdataconnector@2.0.0 corsproxy: export CORSPROXY_PORT=8889 || set CORSPROXY_PORT=8889 && node node_modules/corsproxy/bin/corsproxy
npm ERR! Exit status 1
npm ERR!`

The workaround is correcting the row in the hapi dependecy file manually with: uploads: Os.tmpdir()

Please fix this dependency! Thanks.

@KeshiaRose
Copy link
Contributor

Hi @MsJKrdck, please use npm run http-server to run the Simulator instead. This seems to be an issue cropping up with the newest versions of node and I'm not sure if/when we will fix it.
-Keshia

@markerikson
Copy link

markerikson commented Apr 14, 2021

A coworker just ran into this, and it seems that the WDC setup instructions might need to be updated to reflect this issue - they just say to run npm start. Would be helpful to have a pointer to this in case others run into it.

Also, it looks like the error cause may be described here:

alhazmy13/serverless-offline-python#18 (comment)

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

No branches or pull requests

4 participants