Comments (4)
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.
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.
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.
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)
- Integrate file-include-webpack-plugin HOT 3
- Error: No configuration provided for styles.scss HOT 1
- Error "Option `sitemap` should be an absolute URL" when I run/build for production
- SSL Cert expired on docs page. HOT 1
- Video isn't being loaded during production. HOT 3
- Is there a way to implement permanent redirect?
- Cannot npm install on node 13.8.0
- HTML files in subfolders do not get styles / scripts. HOT 4
- Support for the experimental syntax 'optionalChaining' isn't currently enabled
- Fresh install npm install error HOT 6
- Use a templating/include engine HOT 1
- webp images are not being copied
- Images referenced in HTML are incorrectly deleted during production build HOT 4
- Unmodified clone doesn't build HOT 1
- devServer hot reload does not working. HOT 1
- When running NPM install site_url is blank and causes issues.
- FEAT: Use TailwindCSS for styling HOT 2
- Prebuilt libvips 8.10.5 binaries are not yet available for darwin-arm64v8 ( Apple M1 )
- Need to update node-sass to sass and update image-webpack-loader
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from static-site-boilerplate.