help with npm
This might be a noob (js or max) question, but anyway:
In the node.script help "basic" tab, if I press the "script npm --version",
or
in the "npm" tab, if I press "script npm version",
the node.script debug tool always returns "Cannot read properties of null (reading 'once').
Is this normal and/or do I have do anything else to use npm?
I'm on windows 11 and max 9.0.1
thx
Hi there.
my guess is that you've stumbled across a bug due to some permissions with the Program Files on Windows (where the help file is located).
If you run a similar example in one of your user directories I assume the bug won't be present.
To answer your question - u don't have to set up anything else, Max ships with the required Node and NPM dependencies.
Florian
Indeed, if I start max as admin, npm works!
thanks again 👍
You're welcome.
Just to clarify - the admin access is only necessary for the help patch and we'll fix that up, as said the same message with a JS script in a more common, user space location on disk would not require to run Max as admin.