windows 下可执行node处理 对比记录
作者:互联网
mac、 linux
#!/usr/bin/env node
const { program } = require('commander');
program
.description('An application for pizza ordering')
.option('-p, --peppers', 'Add peppers')
.option('-c, --cheese <type>', 'Add the specified type of cheese', 'marble')
.option('-C, --no-cheese', 'You do not want any cheese');
program.parse();
const options = program.opts();
console.log('options:', options);
windows下面属于安装之后就编译成现在的样子,开发的时候只需要按照上面方式就可以
windows
@IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\..\@vue\cli-service\bin\vue-cli-service.js" %*
) ELSE (
@SETLOCAL
@SET PATHEXT=%PATHEXT:;.JS;=;%
node "%~dp0\..\@vue\cli-service\bin\vue-cli-service.js" %*
)
标签:node,cheese,vue,cli,service,windows,program,对比 来源: https://blog.csdn.net/uk_51/article/details/115546377