简体   繁体   English

如何在 Linux 中使用 CLI 创建项目?

[英]how can i create project with CLI in linux?

我已经在 vue js 中有一个 runnig 项目并安装了 node js,现在我想用 CLI 创建新项目,那么是否需要安装新的 node js 版本??

so is it required to install a new node js version那么是否需要安装新的节点js版本

No. For what?不,为了什么? Just type只需输入

node script.js

or或者

nodejs script.js

in terminal.在终端。

i have found a solution of my question may it help someone other.. follow the step and your project will execute successfully.. 1)create your project folder any where 2)go to that folder using cd command 3)enter this command : sudo npm install --global vue-cli 4)enter this command : sudo vue init webpack ex_cli 5)cd project folder name 6)npm install 7)npm run dev我找到了我的问题的解决方案,它可以帮助其他人..按照步骤操作,您的项目将成功执行.. 1) 在任何地方创建您的项目文件夹 2) 使用 cd 命令转到该文件夹​​ 3) 输入此命令:sudo npm install --global vue-cli 4)输入这个命令:sudo vue init webpack ex_cli 5)cd 项目文件夹名称 6)npm install 7)npm run dev

i had create successfully my project as this way..我以这种方式成功创建了我的项目..

Now it successfully run your project like.. enter image description here现在它成功运行您的项目,例如..在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM