找不到模块‘ipfs-集群-api’的声明文件。'/home/user/Documents/nest-code/node_modules/ipfs-cluster-api/src/index.js‘隐式地具有“任意”类型。如果存在npm i --save-dev @types/ipfs-cluster-api,可以尝试使用它,或者添加一个新的声明(.d.ts)文件,其中包含“声明模块”ipfs-集群-api‘;
如果我跟随安装npm,那么我也会在下面看到以下错误:
npm错误!代码E404 npm!404 not GET - npm!404 npm!404‘@type/ipfs集群-
我正在使用IPFS服务来存储文件。从Node.js应用程序中,我可以初始化IPFS_Node并使用这个节点上传文件。
var ipfs = ipfsClient({
// the hostname (or ip address) of the endpoint providing the ipfs api
host: '*****************',
// the port to connect on
port: '443',
// &
我通过HTTP客户端向IPFS发送请求:
var cleanScript = {
'type': 'script'
};
var formData = new FormData();
var jsonse = JSON.stringify(cleanScript);
var blob = new Blob([jsonse], {type: "application/json"});
formData.append('file', blob, 'file.json')
fetc
我正在尝试创建一个文件。(testipfs文件夹已存在)
File imagesFolder = new File(Environment.getExternalStorageDirectory(), "testipfs");
File photo= new File(imagesFolder, "desktopWallpaper.jpg");
System.out.println("Saving file in "+photo.getAbsolutePath());
if (!photo.exists()) {
try {
p
我试图使用ipfsd-ctl库使用提供的远程端点从浏览器生成IPFS守护进程。
// Start a remote disposable node, and get access to the api
// print the node id, and stop the temporary daemon
const Ctl = require('ipfsd-ctl')
const port = 9090
const server = Ctl.createServer(port, {
ipfsModule: require('ipfs'),
我正在尝试从HTML页面上传文件到IPFS,下面是我的代码,但是我得到了下面的错误。
Uncaught ReferenceError: Buffer is not defined
我进口了以下报表
src="https://unpkg.com/ipfs/dist/index.min.js"
src="https://cdn.jsdelivr.net/npm/ipfs/dist/index.min.js"
src="https://unpkg.com/ipfs/dist/index.js"
src="https://cdn.jsdelivr
我目前正在努力学习如何使用ipfs与ethereum一起创建web应用程序。为了帮助理解ipfs是如何工作的,我创建了一个简单的React应用程序,它使用公共网关将图像加载到ipfs和从ipfs中加载。应用程序的主要javascript文件如下:
import React, { Component } from 'react';
import logo from '../logo.png';
import './App.css';
const ipfsClient = require('ipfs-http-client');
c