Ant-design-pro: clone 项目 install 包后,提示 check-prettier 未找到

Created on 1 Jan 2019  ·  6Comments  ·  Source: ant-design/ant-design-pro

git clone 项目后,cnpm install,然后 直接 npm start,提示 check-prettier 未安装。
检查了下,这个包已经在项目中了,package.json 里面也有。重装后也不行。

macOS 环境

✔ Linked 0 latest versions
✔ Run 0 scripts
✔ All packages installed (used 382ms, speed 1.05kB/s, json 1(409B), tarball 0B)
➜  cdn git:(master) npm start

> [email protected] start /Users/xxxx/Code/js/cdn
> cross-env APP_TYPE=site umi dev

[hardsource:75796d7c] Using 49 MB of disk space.
[hardsource:75796d7c] Tracking node dependencies with: package-lock.json, yarn.lock, .umirc.js, .umirc.local.js, config/*.
[hardsource:75796d7c] Reading from cache 75796d7c...

✖ Webpack
  Compiled with some errors in 2.47s

 ERROR  Failed to compile with 1 errors                       13:11:15

This dependency was not found:

* check-prettier in dll umi

To install it, you can run: npm install --save check-prettier
👨🏼‍🌾 FAQ

Most helpful comment

兄弟 元旦啊.
我试过 npm i umi -g, npm i check-prettier --save 都木有用
把package.json中的check-prettier 干掉了.问题已解决

All 6 comments

我犯了个错误,我很快修正

将check-prettiet加到package.json 的dev里面

兄弟 元旦啊.
我试过 npm i umi -g, npm i check-prettier --save 都木有用
把package.json中的check-prettier 干掉了.问题已解决

放到dev就好了

cc @sorrycc

原来如此。。。试了好久以为自己坏了

兄弟 元旦啊.
我试过 npm i umi -g, npm i check-prettier --save 都木有用
把package.json中的check-prettier 干掉了.问题已解决
多谢,可用

Was this page helpful?
0 / 5 - 0 ratings

Related issues

suifan picture suifan  ·  3Comments

Jerry-goodboy picture Jerry-goodboy  ·  3Comments

Yoping picture Yoping  ·  3Comments

ghost picture ghost  ·  3Comments

kaoding picture kaoding  ·  3Comments