基于node.js的Ant Design Pro相关

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/woailuo23/article/details/102736988

运行

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

猜你喜欢

转载自blog.csdn.net/woailuo23/article/details/102736988
今日推荐