0

我收到此错误: 当我尝试启动 ipfs-coord 时,InvalidValueError: The ipfs-repo-migrations package 没有在 verifyAvailableMigrations 从版本 10 迁移到 11 的所有迁移。请问有人知道我应该怎么做吗?提前致谢

这是我的代码

const IPFS = require('ipfs')
const BCHJS = require('@psf/bch-js')
const IpfsCoord = require('ipfs-coord')

async function start() {
  // Create an instance of bch-js and IPFS.
  const bchjs = new BCHJS()
  const ipfs = await IPFS.create()

  // Pass bch-js and IPFS to ipfs-coord when instantiating it.
  const ipfsCoord = new IpfsCoord({
    ipfs,
    bchjs,
    type: 'node.js'
  })

  await ipfsCoord.start()
  console.log('IPFS and the coordination library is ready.')
}
start()


这是我的 package.json

{
  "name": "ipfs-coord-chat-app",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "start": "nodemon app.js"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "@psf/bch-js": "^4.20.26",
    "ipfs": "^0.55.4",
    "ipfs-coord": "^6.7.3",
    "nodemon": "^2.0.15"
  }
}

4

1 回答 1

0

我遇到了这个问题,发现删除主目录中的 .jsipfs 文件夹解决了这个问题。

/home/tom/.jsipfs

请注意,尽管这将删除节点存储的所有先前数据,因此明智的做法是进行备份或找到回滚依赖项并提取任何关键数据的方法。

于 2022-03-02T15:34:59.233 回答