pfdgithub

Results 21 comments of pfdgithub

> > > @Harshadcse您正在使用Node-完成`v14`此工作的最简单方法是升级到当前版本`v16`。 > > > > > > @ eugene1g:当然,我会尝试使用最新版本的node并让您知道, > > @Harshadcse您能够通过更新解决此问题吗?我正在运行Node 12.22,并在我的新M1 Mac上获得它。 node 14.17.0 fixed https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V14.md#other-notable-changes

> @types/react16.8 的HTMLAttributes里没有定义 translate,@types/react18 有定义 translate 以及 onAuxClick 等 HTML 中的 translate 属性支持很差,@types/react18 纯粹是为了类型检查不报错才添加的。 和 ant-design-icons 没有任何关系,所以最合理的解释还是把 SVG 中的属性手滑写错了而已。 这么一个小 BUG 这么久都没人处理,很符合 antd 团队一贯的风格啊 ╮(╯▽╰)╭ https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/translate

请问有没有遇到 cnpm 无法识别私有仓储 scope 的情况? 具体信息请看 https://github.com/cnpm/cnpm/issues/219#issuecomment-371042512

谢谢,我再找找原因,实在不行就用回 npm 了。 感觉 cnpm 的软链机制,坑也挺多的。

找到原因了,详见 https://github.com/cnpm/cnpm/issues/219#issuecomment-371125038

同样的问题,似乎 cnpm 没有正确识别 @xxxxxx 类型私有仓储的 scope 造成的。 ``` cnpmjs.org --version 2.19.4 ``` ``` $ cnpm -v [email protected] (C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\cnpm\lib\parse_argv.js) [email protected] (C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\cnpm\node_modules\npm\lib\npm.js) [email protected] (C:\Program Files\nodejs\node.exe) [email protected] (C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\lib\index.js) prefix=C:\Users\xxxxxx\AppData\Roaming\npm win32 x64 10.0.16299 registry=http://registry.npm.taobao.org...

找到原因了! 执行 ```cnpm i @xxxxxx/name``` 时 cnpm 会 先[检查是否携带 userconfig 参数](https://github.com/cnpm/cnpm/blob/master/lib/parse_argv.js#L88)。 有则直接使用,没有就[使用默认值](https://github.com/cnpm/cnpm/blob/master/lib/config.js#L25) ```~/.cnpmrc``` 。 再[检查是否携带 registry 参数](https://github.com/cnpm/cnpm/blob/master/lib/parse_argv.js#L89)。 有则直接使用,没有就[加载并解析 userconfig 指定的文件](https://github.com/cnpm/cnpm/blob/master/lib/parse_argv.js#L140)。 使用正则表达式 ```/^registry\s*=\s*(.+)$/m``` 无法匹配 ```@xxxxxx:registry=http://registry.npm.xxxxxx.work/``` 类型的配置. 最后[使用默认值](https://github.com/cnpm/cnpm/blob/master/lib/config.js#L41) ```https://registry.npm.taobao.org``` 。 --- 目前来看,通过修改正则表达式,当匹配...

> 同样遇到了这个问题,画布高度无法自适应更新。 别等了,等不到官方修复的。你自己覆盖下 x6 所在容器样式就可以了。 ``` width: auto !important; height: auto !important; ```

it doesn't seem that. ![image](https://user-images.githubusercontent.com/3262762/164954777-d346bbc5-7347-4100-b067-d115f6149e59.png)