Git Product home page Git Product logo

Comments (8)

Txiaozhe avatar Txiaozhe commented on July 24, 2024

Could you please retry it use a lower version node? Such v10 or v12 LTS version.

from pipcook.

yorkie avatar yorkie commented on July 24, 2024

It seems that you got a networking error when gyp downloading Node.js headers:

gyp WARN install got an error, rolling back install
gyp ERR! configure error 
gyp ERR! stack Error: getaddrinfo EAI_AGAIN nodejs.org
gyp ERR! stack     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26)
gyp ERR! System Linux 5.6.5-arch3-1

Could you please try again later?

from pipcook.

hanhan9449 avatar hanhan9449 commented on July 24, 2024

I try it again with node 12.16.2 and npm 6.14.4, but the error still happen:

~/CODE/pipcook-example » ls -a                                han@archlinux
.  ..
-----------------------------------------------------------------------------
~/CODE/pipcook-example »  pipcook init                        han@archlinux
⠋ installing pipcook[..................] / rollbackFailedOptional: verb npm-s
> @pipcook/[email protected] install /home/han/CODE/pipcook-example/node_modules/@pipcook/boa
> node-gyp rebuild

make: Entering directory '/home/han/CODE/pipcook-example/node_modules/@pipcook/boa/build'
  CXX(target) Release/obj.target/boa/src/binding.o
In file included from ../src/core/module.h:3,
                 from ../src/binding.cc:1:
../src/core/common.h:4:10: fatal error: Python.h: No such file or directory
    4 | #include <Python.h>
      |          ^~~~~~~~~~
compilation terminated.
make: *** [boa.target.mk:119: Release/obj.target/boa/src/binding.o] Error 1
make: Leaving directory '/home/han/CODE/pipcook-example/node_modules/@pipcook/boa/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/han/.nvm/versions/node/v12.16.2/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:310:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Linux 5.6.5-arch3-1
gyp ERR! command "/home/han/.nvm/versions/node/v12.16.2/bin/node" "/home/han/.nvm/versions/node/v12.16.2/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/han/CODE/pipcook-example/node_modules/@pipcook/boa
gyp ERR! node -v v12.16.2
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok 
npm WARN [email protected] No description
npm WARN [email protected] No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @pipcook/[email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @pipcook/[email protected] 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!     /home/han/.npm/_logs/2020-04-21T16_26_02_373Z-debug.log
✖ install Error: Command failed: npm install @pipcook/boa --save error

and there is the part of log:

190 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 385ms
191 timing audit body Completed in 1ms
192 silly lifecycle @pipcook/[email protected]~install: Returned: code: 1  signal: null
193 info lifecycle @pipcook/[email protected]~install: Failed to exec install script
194 timing action:install Completed in 556ms
195 verbose unlock done using /home/han/.npm/_locks/staging-88df14f35db6261b.lock for /home/han/CODE/pipcook-example/node_modules/.staging
196 timing stage:rollbackFailedOptional Completed in 113ms
197 timing stage:runTopLevelLifecycles Completed in 2869ms
198 silly saveTree [email protected]
198 silly saveTree `-- @pipcook/[email protected]
198 silly saveTree   +-- [email protected]
198 silly saveTree   | `-- [email protected]
198 silly saveTree   +-- [email protected]
198 silly saveTree   | `-- [email protected]
198 silly saveTree   `-- [email protected]
199 warn [email protected] No description
200 warn [email protected] No repository field.
201 verbose stack Error: @pipcook/[email protected] install: `node-gyp rebuild`
201 verbose stack Exit status 1
201 verbose stack     at EventEmitter.<anonymous> (/home/han/.nvm/versions/node/v12.16.2/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
201 verbose stack     at EventEmitter.emit (events.js:310:20)
201 verbose stack     at ChildProcess.<anonymous> (/home/han/.nvm/versions/node/v12.16.2/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
201 verbose stack     at ChildProcess.emit (events.js:310:20)
201 verbose stack     at maybeClose (internal/child_process.js:1021:16)
201 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
202 verbose pkgid @pipcook/[email protected]
203 verbose cwd /home/han/CODE/pipcook-example
204 verbose Linux 5.6.5-arch3-1
205 verbose argv "/home/han/.nvm/versions/node/v12.16.2/bin/node" "/home/han/.nvm/versions/node/v12.16.2/bin/npm" "install" "@pipcook/boa" "--save"
206 verbose node v12.16.2
207 verbose npm  v6.14.4
208 error code ELIFECYCLE
209 error errno 1
210 error @pipcook/[email protected] install: `node-gyp rebuild`
210 error Exit status 1
211 error Failed at the @pipcook/[email protected] install script.
211 error This is probably not a problem with npm. There is likely additional logging output above.
212 verbose exit [ 1, true ]

and then I use proxychains to try proxy it. but it is still failed.

from pipcook.

yorkie avatar yorkie commented on July 24, 2024

@hanhan9449 Do you use mac and homebrew installed?

from pipcook.

hanhan9449 avatar hanhan9449 commented on July 24, 2024

from pipcook.

yorkie avatar yorkie commented on July 24, 2024

Our latest released version don't support Linux because of Boa, but our master has supported that, may I ask you to follow the instructions: https://github.com/alibaba/pipcook#developers, thank you @hanhan9449.

from pipcook.

rickycao-qy avatar rickycao-qy commented on July 24, 2024

@hanhan9449 We have released the version in which boa will support linux. Please try to update the @pipcook/pipcook-cli to latest version and try pipcook init again :)

from pipcook.

yorkie avatar yorkie commented on July 24, 2024

Closing this because of inactivity, feel free to reopen it if something still not working.

from pipcook.

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.