Write the npm global module, run it on window, and install it on centos.

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

Sep.22,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a7b8-345c9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a7b8-345c9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?