Spaces:
Runtime error
Runtime error
Download static/node_modules/mongodb/etc/prepare.js from kaab4321/NarrativeFlow: direct link, hf CLI and curl.
- Browser
- Download file 377 Bytes
-
https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongodb/etc/prepare.js
- Command line
-
hf download hf://spaces/kaab4321/NarrativeFlow/static/node_modules/mongodb/etc/prepare.js
-
curl -L -o prepare.js https://huggingface.co/spaces/kaab4321/NarrativeFlow/resolve/main/static/node_modules/mongodb/etc/prepare.js
377 Bytes
| var cp = require('child_process'); | |
| var fs = require('fs'); | |
| var os = require('os'); | |
| if (fs.existsSync('src')) { | |
| cp.spawn('npm', ['run', 'build:dts'], { stdio: 'inherit', shell: os.platform() === 'win32' }); | |
| } else { | |
| if (!fs.existsSync('lib')) { | |
| console.warn('MongoDB: No compiled javascript present, the driver is not installed correctly.'); | |
| } | |
| } | |