制作一个个人项目用vue-cli
发布时间
阅读量:
阅读量
执行vue-cli的安装操作
通过命令行输入npm install -g @vue/cli进行全局安装
https://cli.vuejs.org/zh/guide/cli-service.html
2.使用npm init -y命令对项目进行初始化配置

cyp:
#!/usr/bin/env node console.log("hello cyp");
package.json
{
"name": "vue-cli",
"version": "1.0.0",
"description": "",
"bin": {
"yd": "./bin/cyp" //插入这行代码
},
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"
全部评论 (0)
还没有任何评论哟~
