Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find module 'multicodec/src/name-table' #124

Open
kumavis opened this issue Mar 25, 2020 · 4 comments
Open

Error: Cannot find module 'multicodec/src/name-table' #124

kumavis opened this issue Mar 25, 2020 · 4 comments

Comments

@kumavis
Copy link

kumavis commented Mar 25, 2020

with these instructions

npm i -g ipfs
npm i -g ipfs-npm
jsipfs init
ipfs-npm --package-manager=yarn

just encountered this error

metamask-extension on ξ‚  develop [$!] is πŸ“¦ v0.0.0 via β¬’ v10.17.0 
⇑0% ➜ ipfs-npm --package-manager=yarn
πŸ‘©β€πŸš€ Starting local proxy
πŸš€ Server running on port 41037
🎁 Installing dependencies with /home/xyz/.yarn/bin/yarn
yarn install v1.22.4
[1/5] Validating package.json...
[2/5] Resolving packages...
⠁ 😈 Spawning an in-process IPFS node using repo at /home/xyz/.jsipfs
β‘€ minimist@^1.2.5(node:28007) UnhandledPromiseRejectionWarning: Error: Cannot find module 'multicodec/src/name-table'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/home/xyz/.nvm/versions/node/v10.17.0/lib/node_modules/ipfs-npm/node_modules/ipfs-bitswap/src/types/message/index.js:10:19)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/home/xyz/.nvm/versions/node/v10.17.0/lib/node_modules/ipfs-npm/node_modules/ipfs-bitswap/src/want-manager/index.js:4:17)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/home/xyz/.nvm/versions/node/v10.17.0/lib/node_modules/ipfs-npm/node_modules/ipfs-bitswap/src/index.js:10:21)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
(node:28007) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:28007) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
β   minimist@^1.2.5^C%                                    
@kumavis
Copy link
Author

kumavis commented Mar 25, 2020

cc @alanshaw
relevant ipfs/js-ipfs#2700

@vibern0
Copy link

vibern0 commented May 4, 2020

Hi,
I'm having the same issue.
Any solution?

@leonardge
Copy link

Same here.

@leonardge
Copy link

I think upgrade the ipfs and ipfsd-ctl version should solve the problem. And as part of the update you might need to change the ipfsd-ctl API that is been called.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants