antv/17-react 依赖包下不下来
These dependencies were not found:
To install them, you can run: npm install --save @antv/l7 @antv/l7-maps
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.com/@antv%2f17-react - Not found
npm ERR! 404
npm ERR! 404 '@antv/17-react@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in:
npm ERR! D:\Program\nodejs\node_cache_logs\2020-10-07T08_16_09_927Z-debug.log
切换 淘宝镜像也不行,这个包咋整
顶顶顶
通过 yarn create umi 创建的 package.json 开发环境依赖中没有 @antv/l7 这个包, 我通过添加yarn add @antv/l7 -D yarn add @antv/l7-maps -D 把这个错误解决了
如 @yangtianfu01 回复,后面会在package.json 增加 l7 和l7-map依赖
如 @yangtianfu01 回复,后面会在package.json 增加 l7 和l7-map依赖
默认就有这俩依赖,下不下来,找不到资源,这个怎么弄?
如 @yangtianfu01 回复,后面会在package.json 增加 l7 和l7-map依赖
默认就有这俩依赖,下不下来,找不到资源,这个怎么弄?
未更新前的package.json是不会有这两个依赖的, 你的日志里面有一行是依赖包在npm仓库找不到(可能是依赖版本不对), 建议全删除掉, 重新创建和安装.
我本地的node是v12的版本
ok,解决了,感谢
Most helpful comment
通过
yarn create umi创建的package.json开发环境依赖中没有@antv/l7这个包, 我通过添加yarn add @antv/l7 -Dyarn add @antv/l7-maps -D把这个错误解决了