I'm trying to create a command line tool with node (following these instructions).
So I add "bin" to package.json file
$ sudo npm link
-bash: /usr/local/bin/test: usr/bin/env: bad interpreter: No such file or directory
I don't think npm link is needed in this case; you normally would use it to connect a module from your file system that you might otherwise pull in via the npm install command.
Your shebang syntax looks off to me, though, missing the leading slash: