I got a error when install



  • I am now working in mac os.

    step 1: git clone -b v1.10.x https://github.com/NodeBB/NodeBB.git

    step 2: ./nodebb setup
    then I am got two errors:

    **BB/node_modules/sharp/install/libvips.js:77
    throw err;
    ^

    Error: connect ECONNREFUSED 127.0.0.1:443
    at Object._errnoException (util.js:992:11)
    at _exceptionWithHostPort (util.js:1014:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1186:14)
    TOUCH Release/obj.target/libvips-cpp.stamp
    CXX(target) Release/obj.target/sharp/src/common.o
    ../src/common.cc:25:10: fatal error: 'vips/vips8' file not found
    #include <vips/vips8>
    ^~~~~~~~~~~~
    1 error generated.
    make: *** [Release/obj.target/sharp/src/common.o] Error 1
    gyp ERR! build error
    gyp ERR! stack Error: make failed with exit code: 2
    gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
    gyp ERR! stack at emitTwo (events.js:126:13)
    gyp ERR! stack at ChildProcess.emit (events.js:214:7)
    gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
    gyp ERR! System Darwin 17.7.0
    gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
    gyp ERR! cwd **BB/node_modules/sharp
    gyp ERR! node -v v8.11.3
    gyp ERR! node-gyp -v v3.8.0
    gyp ERR! not ok
    npm WARN eslint-config-airbnb-base@12.1.0 requires a peer of eslint@^4.9.0 but none is installed. You must install peer dependencies yourself.
    npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.

    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! sharp@0.21.0 install: (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the sharp@0.21.0 install script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in:
    npm ERR! /**/.npm/_logs/2018-10-16T03_08_01_571Z-debug.log
    Error installing dependencies!
    message: Command failed: npm install --production
    stdout: null
    stderr: null
    **BB/src/cli/package-install.js:54
    throw e;
    ^

    Error: Command failed: npm install --production
    at checkExecSyncError (child_process.js:601:13)
    at Object.execSync (child_process.js:641:13)
    at Object.installAll (**BB/src/cli/package-install.js:45:9)
    at Object.<anonymous> (**BB/src/cli/index.js:58:18)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)


  • Global Moderator

    Hmm looks like sharp isn't installing correctly. If you wanna try out some stuff, here's this:


Log in to reply
 

Suggested Topics

  • 10
  • 8
  • 7
  • 6
  • 3
| |