Npm install not running

Based on my understanding we don’t have to specify npm install if there is a package.json file.
When running mocha or other npm modules we get “Command not found”.

Also, when running nvm in Pre-Dependency commands in the UI, we still get the node version set by default. We are able to override the node version only by setting it in the circle.yml file

Thank you!