Ant Design of React 作为依赖安装了,使用了一个小组件后webpack,报错antd文件夹中package.json有一些东西没装,我在antd文件夹下再npm install了,提示
npm ERR! not found: git
npm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.
npm ERR! Please include the following file with any support request:
npm ERR! E:\react_start\node_modules\antd\npm-debug.log
,我把package.json
里面的
"repository": {
"type": "git",
"url": "git+https://github.com/ant-design/ant-design.git"
},
删除了也不行,用过Ant Design of React 的大神给点提示好不?新年快乐了亲们
安装git。
windows的git下载地址
安装时候记得勾上加入路径选项,这样就不用自己配置路径了。看不懂的话,就在多选框(三个选择那种)都选择最后一个就行。
安装git并加入path