Questions tagged [mmmagic]
4 questions
2
votes
1 answer
Cannot find module '../build/Release/magic' from 'index.js' during Jest tests
I have the following error, while running jest tests:
Cannot find module '../build/Release/magic' from 'index.js'
at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:191:17)
at Object.…

Vladyslav Moisieienkov
- 4,118
- 4
- 25
- 32
1
vote
2 answers
npm installing mmmagic fails
I am attempting to install mmmagic however I get the following error:
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "mmmagic"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm…

Marc Rasmussen
- 19,771
- 79
- 203
- 364
0
votes
1 answer
JavaScript - Set object property in callback
I'm pretty confident that there is something with this that I'm doing wrong. This question has been asked before, but even after reviewing the other questions and answers, I still can't get it to work.
Basically the issue is that I can't set…

zee
- 656
- 2
- 7
- 30
0
votes
0 answers
node mmmagic detectFile returns inode/x-empty
I am trying to detect my uploaded file type. There are two files im uploading:
input.xls
And
input.ods
In node i run the following code:
var magic = new Magic(mmm.MAGIC_MIME_TYPE);
magic.detectFile(req.filePath, function(err, result) {
if…

Marc Rasmussen
- 19,771
- 79
- 203
- 364