Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The build requires more dependencies than described in the README #25

Open
baby-gnu opened this issue Jan 21, 2022 · 0 comments
Open

The build requires more dependencies than described in the README #25

baby-gnu opened this issue Jan 21, 2022 · 0 comments

Comments

@baby-gnu
Copy link

I need to install python2 to build the react application:

build log when python2 is missing
[4/4] Building fresh packages...
error /home/market/appmarket-simple/src/public/react/node_modules/node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments: 
Directory: /home/market/appmarket-simple/src/public/react/node_modules/node-sass
Output:
Building: /usr/bin/node /home/market/appmarket-simple/src/public/react/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli   '/usr/bin/node',
gyp verb cli   '/home/market/appmarket-simple/src/public/react/node_modules/node-gyp/bin/node-gyp.js',
gyp verb cli   'rebuild',
gyp verb cli   '--verbose',
gyp verb cli   '--libsass_ext=',
gyp verb cli   '--libsass_cflags=',
gyp verb cli   '--libsass_ldflags=',
gyp verb cli   '--libsass_library='
gyp verb cli ]
gyp info using node-gyp@3.8.0
gyp info using node@12.22.5 | linux | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed     at getNotFoundError (/home/market/appmarket-simple/src/public/react/node_modules/which/which.js:13:12)
gyp verb `which` failed     at F (/home/market/appmarket-simple/src/public/react/node_modules/which/which.js:68:19)
gyp verb `which` failed     at E (/home/market/appmarket-simple/src/public/react/node_modules/which/which.js:80:29)
gyp verb `which` failed     at /home/market/appmarket-simple/src/public/react/node_modules/which/which.js:89:16
gyp verb `which` failed     at /home/market/appmarket-simple/src/public/react/node_modules/isexe/index.js:42:5
gyp verb `which` failed     at /home/market/appmarket-simple/src/public/react/node_modules/isexe/mode.js:8:5
gyp verb `which` failed     at FSReqCallback.oncomplete (fs.js:168:21)
gyp verb `which` failed  python2 Error: not found: python2
gyp verb `which` failed     at getNotFoundError (/home/market/appmarket-simple/src/public/react/node_modules/which/which.js:13:12)
gyp verb `which` failed     at F (/home/market/appmarket-simple/src/public/react/node_modules/which/which.js:68:19)
gyp verb `which` failed     at E (/home/market/appmarket-simple/src/public/react/node_modules/which/which.js:80:29)
gyp verb `which` failed     at /home/market/appmarket-simple/src/public/react/node_modules/which/which.js:89:16
gyp verb `which` failed     at /home/market/appmarket-simple/src/public/react/node_modules/isexe/index.js:42:5
gyp verb `which` failed     at /home/market/appmarket-simple/src/public/react/node_modules/isexe/mode.js:8:5
gyp verb `which` failed     at FSReqCallback.oncomplete (fs.js:168:21) {
gyp verb `which` failed   code: 'ENOENT'
gyp verb `which` failed }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` failed Error: not found: python
gyp verb `which` failed     at getNotFoundError (/home/market/appmarket-simple/src/public/react/node_modules/which/which.js:13:12)
gyp verb `which` failed     at F (/home/market/appmarket-simple/src/public/react/node_modules/which/which.js:68:19)
gyp verb `which` failed     at E (/home/market/appmarket-simple/src/public/react/node_modules/which/which.js:80:29)
gyp verb `which` failed     at /home/market/appmarket-simple/src/public/react/node_modules/which/which.js:89:16
gyp verb `which` failed     at /home/market/appmarket-simple/src/public/react/node_modules/isexe/index.js:42:5
gyp verb `which` failed     at /home/market/appmarket-simple/src/public/react/node_modules/isexe/mode.js:8:5
gyp verb `which` failed     at FSReqCallback.oncomplete (fs.js:168:21)
gyp verb `which` failed  python Error: not found: python
gyp verb `which` failed     at getNotFoundError (/home/market/appmarket-simple/src/public/react/node_modules/which/which.js:13:12)
gyp verb `which` failed     at F (/home/market/appmarket-simple/src/public/react/node_modules/which/which.js:68:19)
gyp verb `which` failed     at E (/home/market/appmarket-simple/src/public/react/node_modules/which/which.js:80:29)
gyp verb `which` failed     at /home/market/appmarket-simple/src/public/react/node_modules/which/which.js:89:16
gyp verb `which` failed     at /home/market/appmarket-simple/src/public/react/node_modules/isexe/index.js:42:5
gyp verb `which` failed     at /home/market/appmarket-simple/src/public/react/node_modules/isexe/mode.js:8:5
gyp verb `which` failed     at FSReqCallback.oncomplete (fs.js:168:21) {
gyp verb `which` failed   code: 'ENOENT'
gyp verb `which` failed }
gyp ERR! configure error 
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failNoPython (/home/market/appmarket-simple/src/public/react/node_modules/node-gyp/lib/configure.js:484:19)
gyp ERR! stack     at PythonFinder.<anonymous> (/home/market/appmarket-simple/src/public/react/node_modules/node-gyp/lib/configure.js:406:16)
gyp ERR! stack     at F (/home/market/appmarket-simple/src/public/react/node_modules/which/which.js:68:16)
gyp ERR! stack     at E (/home/market/appmarket-simple/src/public/react/node_modules/which/which.js:80:29)
gyp ERR! stack     at /home/market/appmarket-simple/src/public/react/node_modules/which/which.js:89:16
gyp ERR! stack     at /home/market/appmarket-simple/src/public/react/node_modules/isexe/index.js:42:5
gyp ERR! stack     at /home/market/appmarket-simple/src/public/react/node_modules/isexe/mode.js:8:5
gyp ERR! stack     at FSReqCallback.oncomplete (fs.js:168:21)
gyp ERR! System Linux 5.10.0-9-amd64
gyp ERR! command "/usr/bin/node" "/home/market/appmarket-simple/src/public/react/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /home/market/appmarket-simple/src/public/react/node_modules/node-sass
gyp ERR! node -v v12.22.5
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
Build failed with error code: 1

and in fact, I need build-essential on my Debian buster distribution for the build to work correctly.

@baby-gnu baby-gnu changed the title The build requires python2 The build requires more dependencies than described in the README Jan 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant