Test the Spartacus installation with schematics on Windows
本文介绍详细步骤。
首先使用命令行安装 verdaccio:
Install verdaccio $ npm i -g verdaccio@4 (only for the first time)
Verdaccio 是一个简单的、零配置要求的本地私有 NPM 注册表。 不需要整个数据库就可以开始。 Verdaccio 开箱即用,带有自己的小型数据库,并且能够代理其他注册表(例如 npmjs.org),还引入了缓存下载模块的功能。 对于那些希望扩展其存储能力的人,Verdaccio 支持各种社区制作的插件来连接到服务,例如 Amazon 的 S3、Google Cloud Storage 或创建自己的插件。
verdaccio 用来注册新用户,完成之后需要结束该进程。
上面脚本的含义是,把 lsof 命令的结果存到变量 VERDACCIO_PID 里,然后检查该变量是否不为空。
-n 操作检测后面的操作数是否为空。
if [ ! -n “$1” ] 的含义是,检查第一个参数是否为空。-n 不为空,再用感叹号加个反,表示空。
等价于:-z 检测第一个输入参数是否为空。
$1 $2 代表第一个和第二个输入参数,例如下面的 shell 脚本:
./foo bar baz
则 $1 为 bar,$2 为 baz
An unhandled exception occurred: EPERM: operation not permitted, open 'C:\Users\I042416.angular-config.json
The installation will create two folders in the $BASE_DIR directory:
apps (generated/executable apps)
clone (cloned Spartacus repo)
FESM2015
UMD
开始构建了: