package.json fragment
"bin": {
"toggle": "./bin/toggle.js"
}
directory structure
-
bin
- toggle.js
- package.json
sudo npm install xx-g
under centos
run error: No such file or directory
< H2 > File header is < / H2 >-sharp!/usr/bin/env node
would you like to ask if you encounter a similar situation again? thank you for solving the problem