Node for Max - freesound
Rica
Nov 10 2018 | 12:19 am
Hi everybody!
I have a problem getting the freesound-search patch (part of the Node for Max package) running.
I installed the requested fork of the NPM package and did everything written in the readme (creating a .env with API key ) , though getting the
following error message, when trying to install npm and then start it:
In the node.script monitor:
"Process could not be startet due to following error:
Cannot find module 'freesound' at Function.Module_resolveFilename (module.js:547:15)
at Object.Mode._Load (module.js:474:25) ... "
(-> any way to print/copy the node.script debug monitor stuff ??)
So does freesound module refer to the requested freesound.js file from https://github.com/Girlfriends/freesound.js ?
I put it into the freesound example folder ; maybe I need to put it somewhere else ?
And in the max console appears this:
print: NPM install started
node.script: NPM exited with non-zero code "1" at C:/Program Files/Cycling '74/Max 8/resources/packages/Node For Max/examples/freesound
print: NPM install error
node.script: {
"code" : "MODULE_NOT_FOUND"
}
node.script: Could not load the dotenv module. Please be sure to send the message 'script npm install' to the node.script object to download node modules
node.script: No value for key FREESOUND_CLIENT_KEY in .env file. Please make sure to create a file called .env with a Freesound API Client key.
node.script: No value for key FREESOUND_CLIENT_SECRET in .env file. Please make sure to create a file called .env with a Freesound API Client Secret.
node.script: Unable to launch process
}
Thanks for any help !