基于node.js的Ant Design Pro相关

运行

1安装node.sj

2在AntDesignPro为基础得项目下,shift +鼠标右键,在此处打开命令窗口(dos窗口),

另外一种方式是用idea打开,在窗口Terminal执行以下命令

3依次执行以下命令:

npm -v 查看版本

npm cache clean --force   --强制执行清理缓存

npm install  安装 :开始本地下载脚手架,此步骤可能会出现如下类似的错误:

提示错误信息:
D:\2019work\tool\nodejs\node_modules\npm>npm cache clean
npm ERR! As of npm@5, the npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. If you want to make sure everything is consistent, use 'npm cache verify' instead. On the other hand, if you're debugging an issue with the installer, you can use `npm install --cache /tmp/empty-cache` to use a temporary cache instead of nuking the actual one.
npm ERR!
npm ERR! If you're sure you want to delete the entire cache, rerun this command with --force.
npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\zhao\AppData\Roaming\npm-cache\_logs\2019-08-28T09_56_07_694Z-debug.log
执行 npm install 时 ,出现 解析错误的信息,

 执行npm -g i npm@4,降低npm的版本,然后重新npm install即可;

(若仍有其他不同错误,可自行google解决,首次接触了解不多)

npm start 启动模块:开始启动,启动成功会自动打开登录界面;(需要后台支持,后台基于spring boot快捷开发)

其他相关命令备注如下:

npm stop 停止模块
npm uninstall 卸载模块
npm update 更新模块
npm version 查看模块版本
npm outdated 检查模块是否已经过时
npm ls 查看安装的模块
npm init 在项目中引导创建一个package.json文件

 

 

 

参考 https://pro.ant.design/docs/getting-started-cn

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值