Advertisement

Phpstorm用于创建Vue项目,并进行运行和打包发布

阅读量:

少废话!马上开始核心内容!对于WebStorm学习者来说,在操作流程上与PhpStorm极为相似

1. 安装Node

访问Node.js官网页面 http://nodejs.cn/download/ ,定位到Windows版本的下载文件 ,将下载文件保存至本地计算机;双击安装文件开始安装程序;无需深入讨论安装步骤

Npm命令解释:

npm install moduleName:安装模块到项目目录下。

npm install the module globally: the -g flag designates global installation, specifying exactly where on the disk the module will be placed depends on the npm config prefix setting.

使用 npm 命令安装时选择 -save 选项会将相应的包保存到项目的根目录下,并在 package 文件中更新 dependencies 索引以反映新增内容。其中 -S 是此命令的标准缩写形式。

安装命令为 npm install -save-dev moduleName。其中 D 是该操作的常见缩写形式。表示将模块存放在项目根目录,并在 package 文件中的 dev

全部评论 (0)

还没有任何评论哟~