Giter Site home page Giter Site logo

Comments (8)

junxiaogwu2024 avatar junxiaogwu2024 commented on June 1, 2024 1

Ah, that worked, even though I still have this error.

Try 'libtool --help' for more information.
libtool: error: unrecognised option: '-static'
make: *** [Release/leveldb.a] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/junxiao/.nvm/versions/node/v16.20.2/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (node:events:513:28)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:293:12)
gyp ERR! System Darwin 22.6.0
gyp ERR! command "/Users/junxiao/.nvm/versions/node/v16.20.2/bin/node" "/Users/junxiao/.nvm/versions/node/v16.20.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/junxiao/.nvm/versions/node/v16.20.2/lib/node_modules/truffle/node_modules/leveldown
gyp ERR! node -v v16.20.2
gyp ERR! node-gyp -v v5.1.1
gyp ERR! not ok

The truffle command worked.

truffle
Truffle v5.11.3 - a development framework for Ethereum

Usage: truffle [options]

from truffle.

snwlprdgthb avatar snwlprdgthb commented on June 1, 2024

Hello @junxiaogwu2024 !

What is your current version of node ?
You can switch versions with nmv, error may go away with a later/earlier version.
And I'm just wondering if this same error logs occurs when installing truffle locally without the -g flag ?

from truffle.

junxiaogwu2024 avatar junxiaogwu2024 commented on June 1, 2024

Hi @snwlprdgthb,

The npm is version 10.0.0. let me try with a different version of npm to give a try.

Thanks,

from truffle.

snwlprdgthb avatar snwlprdgthb commented on June 1, 2024

@junxiaogwu2024

I meant node version, not npm
Thanks

from truffle.

junxiaogwu2024 avatar junxiaogwu2024 commented on June 1, 2024

Ah, sorry, the node version is v18.17.1.

Cheers,

from truffle.

junxiaogwu2024 avatar junxiaogwu2024 commented on June 1, 2024

I tried with a lower version, 16.20.1, but got the same error. I wonder if anything else I could try.
Cheers.

from truffle.

snwlprdgthb avatar snwlprdgthb commented on June 1, 2024

@junxiaogwu2024

I got it. Try downgrading npm to version 6, it should work for you.

npm install -g npm@6

from truffle.

gnidan avatar gnidan commented on June 1, 2024

Glad to see this is [mostly] sorted out... I think we can probably close this? That one error message seems like one that we can ignore.

Please open a new issue if you run into further problems. Thanks for reporting this!

from truffle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.