Can't load packages from NPM
Hi all,
I'm trying to load a package from npm with no success. The package in question is the YAML parser 'yaml'. No matter what I do I can't get Max to see the package even though I've installed it over the command-line, and then called the method `script npm install`. The error that is produced is not copyable, but looks something like this.
Error: Cannot find module `yaml'
at Function.Module._resolveFilename (internal.modules/cjs/loader.js:580:15)
at Object.Module._load (internal/modules./cjs/loader.js:506:25.
I've seen some other threads where this kind of issue arises, but the solutions they came up with don't solve my issue. I have tried installing a number of arbitrary packages from npm with no success now, so I'm sure its not just yaml but perhaps my install or something conflicting.

Ah!
If anyone would like to learn from my stupidity - make sure your .js file that you're working on is saved in the same folder as your node modules and Max patch...