Open xgqfrms opened 1 year ago
#!
#!/usr/bin/env node # ✅ 推荐写法, 动态读取 env 配置的解释器路径,切换系统环境不会报错,可移植性高 🚀
#!/usr/bin/node # 👎 不推荐写法,写死了解释器路径,切换系统环境有可能会报错,可移植性低
作者:xgqfrms 链接:https://www.cnblogs.com/xgqfrms/p/17273683.html 来源:https://www.cnblogs.com 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 ©xgqfrms 2012-2023 www.cnblogs.com 发布文章使用:只允许注册用户才可以访问! 原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
Node.js CLI & Linux shell
#!
interpreter作者:xgqfrms 链接:https://www.cnblogs.com/xgqfrms/p/17273683.html 来源:https://www.cnblogs.com 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 ©xgqfrms 2012-2023 www.cnblogs.com 发布文章使用:只允许注册用户才可以访问! 原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!