How to resolve “npm-default: not found”?

when I want to install npm package I see this error message:

npm install cody


Output is:

/usr/bin/npm: line 6: exec: npm-default: not found


And nano /usr/bin/npm Output is:

#!/bin/sh PROG=$(basename $0) PROG_VERSION=${NODE_VERSION:--default} exec ${PROG}${PROG_VERSION} "$@"

 

And
**npm -v **Output is:


/usr/bin/npm: line 6: exec: npm-default: not found

Any suggestions?

I found method with install npm