Git Product home page Git Product logo

Comments (4)

binakot avatar binakot commented on May 17, 2024 2

Btw if I switch to Node 14, it will works!

I think maintainer should remove current package-lock.json, update Node to 16 and try to run project again.

from static-site-boilerplate.

StevenLove avatar StevenLove commented on May 17, 2024

I had a somewhat similar error trying to run npm install, and my error was fixed by updating python.
I'm on mac so I ran brew install python3 and then npm install worked.

From your log:
npm ERR! gyp ERR! stack Error: Command failed: C:\Python310\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
and
npm ERR! gyp ERR! stack SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
According to python docs in version 3.0 they switched from a syntax where you call print without parentheses to one where you call print with parentheses. Seems like this is consistent with your install problem being caused by having the wrong python version.

Good luck!

from static-site-boilerplate.

shenef avatar shenef commented on May 17, 2024

Same problem here, my Python is already on the latest version (3.10.4).
npm 8.9.0
node 17.9.0

from static-site-boilerplate.

binakot avatar binakot commented on May 17, 2024

Same here on archlinux.

Just git clone repo and run npm i.

10469 verbose Linux 6.1.7-arch1-1
10470 verbose node v16.18.1
10471 verbose npm  v8.19.2
10472 error code 1
10473 error path /home/binakot/_repos/waliot/firstmk-landing-page/node_modules/node-sass
10474 error command failed
10475 error command sh -c -- node scripts/build.js
10476 error Building: /home/binakot/.nvm/versions/node/v16.18.1/bin/node /home/binakot/_repos/waliot/firstmk-landing-page/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
10477 error gyp info it worked if it ends with ok
10477 error gyp verb cli [
10477 error gyp verb cli   '/home/binakot/.nvm/versions/node/v16.18.1/bin/node',
10477 error gyp verb cli   '/home/binakot/_repos/waliot/firstmk-landing-page/node_modules/node-gyp/bin/node-gyp.js',
10477 error gyp verb cli   'rebuild',
10477 error gyp verb cli   '--verbose',
10477 error gyp verb cli   '--libsass_ext=',
10477 error gyp verb cli   '--libsass_cflags=',
10477 error gyp verb cli   '--libsass_ldflags=',
10477 error gyp verb cli   '--libsass_library='
10477 error gyp verb cli ]
10477 error gyp info using [email protected]
10477 error gyp info using [email protected] | linux | x64
10477 error gyp verb command rebuild []
10477 error gyp verb command clean []
10477 error gyp verb clean removing "build" directory
10477 error gyp verb command configure []
10477 error gyp verb check python checking for Python executable "python2" in the PATH
10477 error gyp verb `which` failed Error: not found: python2
10477 error gyp verb `which` failed     at getNotFoundError (/home/binakot/_repos/waliot/firstmk-landing-page/node_modules/which/which.js:13:12)
10477 error gyp verb `which` failed     at F (/home/binakot/_repos/waliot/firstmk-landing-page/node_modules/which/which.js:68:19)
10477 error gyp verb `which` failed     at E (/home/binakot/_repos/waliot/firstmk-landing-page/node_modules/which/which.js:80:29)
10477 error gyp verb `which` failed     at /home/binakot/_repos/waliot/firstmk-landing-page/node_modules/which/which.js:89:16
10477 error gyp verb `which` failed     at /home/binakot/_repos/waliot/firstmk-landing-page/node_modules/isexe/index.js:42:5
10477 error gyp verb `which` failed     at /home/binakot/_repos/waliot/firstmk-landing-page/node_modules/isexe/mode.js:8:5
10477 error gyp verb `which` failed     at FSReqCallback.oncomplete (node:fs:202:21)
10477 error gyp verb `which` failed  python2 Error: not found: python2
10477 error gyp verb `which` failed     at getNotFoundError (/home/binakot/_repos/waliot/firstmk-landing-page/node_modules/which/which.js:13:12)
10477 error gyp verb `which` failed     at F (/home/binakot/_repos/waliot/firstmk-landing-page/node_modules/which/which.js:68:19)
10477 error gyp verb `which` failed     at E (/home/binakot/_repos/waliot/firstmk-landing-page/node_modules/which/which.js:80:29)
10477 error gyp verb `which` failed     at /home/binakot/_repos/waliot/firstmk-landing-page/node_modules/which/which.js:89:16
10477 error gyp verb `which` failed     at /home/binakot/_repos/waliot/firstmk-landing-page/node_modules/isexe/index.js:42:5
10477 error gyp verb `which` failed     at /home/binakot/_repos/waliot/firstmk-landing-page/node_modules/isexe/mode.js:8:5
10477 error gyp verb `which` failed     at FSReqCallback.oncomplete (node:fs:202:21) {
10477 error gyp verb `which` failed   code: 'ENOENT'
10477 error gyp verb `which` failed }
10477 error gyp verb check python checking for Python executable "python" in the PATH
10477 error gyp verb `which` succeeded python /usr/bin/python
10477 error gyp ERR! configure error 
10477 error gyp ERR! stack Error: Command failed: /usr/bin/python -c import sys; print "%s.%s.%s" % sys.version_info[:3];
10477 error gyp ERR! stack   File "<string>", line 1
10477 error gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
10477 error gyp ERR! stack                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
10477 error gyp ERR! stack SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
10477 error gyp ERR! stack 
10477 error gyp ERR! stack     at ChildProcess.exithandler (node:child_process:402:12)
10477 error gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
10477 error gyp ERR! stack     at maybeClose (node:internal/child_process:1100:16)
10477 error gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
10477 error gyp ERR! System Linux 6.1.7-arch1-1
10477 error gyp ERR! command "/home/binakot/.nvm/versions/node/v16.18.1/bin/node" "/home/binakot/_repos/waliot/firstmk-landing-page/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
10477 error gyp ERR! cwd /home/binakot/_repos/waliot/firstmk-landing-page/node_modules/node-sass
10477 error gyp ERR! node -v v16.18.1
10477 error gyp ERR! node-gyp -v v3.8.0
10477 error gyp ERR! not ok 
10477 error Build failed with error code: 1
10478 verbose exit 1
$ node -v
v16.18.1

$ npm -v
8.19.2

$ python --version
Python 3.10.9

$ python3 --version
Python 3.10.9

from static-site-boilerplate.

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.