摘要:
本地node升级成18.x版本后,启动原先的项目会出现报错:digital envelope routines::unsupported 通过查找原因,这是由于node 17的bug,解决方法如下: 修改package.js,在相关构建命令之前加入set NODE_OPTIONS openssl-l 阅读全文
posted @ 2022-12-08 17:46
抽风的皮鞭
阅读(948)
评论(0)
推荐(0)
摘要:
react路由模块react-router-dom的6.x版本较老版本有较大改动,具体用法如下: 1. 下载react-router-dom npm i react-router-dom --save 2.在入口文件引入BrowserRouter包裹App根组件 index.js import Re 阅读全文
posted @ 2022-12-08 17:28
抽风的皮鞭
阅读(1385)
评论(0)
推荐(0)
摘要:
package.json { "scripts": { "start": "set PORT=4400 && react-scripts start", // 注意修改端口号要写在前面 "build": "react-scripts build", "test": "react-scripts te 阅读全文
posted @ 2022-12-08 10:58
抽风的皮鞭
阅读(503)
评论(0)
推荐(0)

浙公网安备 33010602011771号