uiwjs / react-baidu-map

基于 React 封装的百度地图组件,支持 React Hook,帮助你轻松的接入地图到 React 项目中。
https://uiwjs.github.io/react-baidu-map
MIT License
223 stars 22 forks source link

@uiw/react-code-preview@1.10.0 安装失败 #1

Closed kuhami closed 4 years ago

kuhami commented 4 years ago

@uiw/react-code-preview@1.10.0 安装失败,对应的 node 和 npm 的版本是多少?

jaywcjlove commented 4 years ago

@kuhami 报错内容是什么

jaywcjlove commented 4 years ago

@kuhami 目前我的版本较高,一般情况应该 node 8+ 以上吧

▶ node -v
v12.10.0
▶ npm -v
6.11.3
kuhami commented 4 years ago

@kuhami 报错内容是什么

执行 npm install @uiw/react-code-preview

npm ERR! Maximum call stack size exceeded

npm ERR! A complete log of this run can be found in: npm ERR! /Users/mwbyd/.npm/_logs/2019-11-20T09_01_26_946Z-debug.log

jaywcjlove commented 4 years ago

@kuhami 帮你搜索了一下,网上建议升级 npm 来解决这个问题。

npm install -g npm #  升级到最新版