devowlio / node-lame

LAME is an open-source encoder that encodes and decodes audio to the MP3 file format. For all MP3 needs a Node.js wrapper of the full LAME command line.
Other
81 stars 9 forks source link

Node-lame doesn't pick up on Lame installed on Ubuntu #20

Closed ProtoCh4os closed 3 years ago

ProtoCh4os commented 3 years ago

I've installed node-lame to my express API project and also installed lame on my machine, but I still get the same error:


  errno: -2,
  syscall: 'unlink',
  code: 'ENOENT',
  path: '/var/local/dev/xpro/api/node_modules/node-lame/lib/build/../../temp/encoded/bXcSyjRFDHSMaFw2Cf4zGNUYep3NAhid',
  stack: "Error: ENOENT: no such file or directory, unlink '/var/local/dev/xpro/api/node_modules/node-lame/lib/build/../../temp/encoded/bXcSyjRFDHSMaFw2Cf4zGNUYep3NAhid'\n" +
    '    at Object.unlinkSync (fs.js:1155:3)\n' +
    '    at Lame.removeTempFilesOnError (/var/local/dev/xpro/api/node_modules/node-lame/lib/src/Lame.ts:436:13)\n' +
    '    at /var/local/dev/xpro/api/node_modules/node-lame/lib/src/Lame.ts:182:26\n' +
    '    at processTicksAndRejections (internal/process/task_queues.js:97:5)',
  name: 'Error',
  meta: {
    message: "ENOENT: no such file or directory, unlink '/var/local/dev/xpro/api/node_modules/node-lame/lib/build/../../temp/encoded/bXcSyjRFDHSMaFw2Cf4zGNUYep3NAhid'"
  }
}```

I've researched around the Issues and it seems like `node-lame` isn't picking up on `lame` installed in my system
See screenshot attached:
![image](https://user-images.githubusercontent.com/26610837/100449870-65223b00-3093-11eb-9f86-5497f546d661.png)

OS: Ubuntu 20.04
Node Version: 14.4.0
ProtoCh4os commented 3 years ago

Apologies, seems to be something on my end, a small test proved it does pick up, there must be something else. Thanks!