-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
I ran into two build issues.
I followed tutorial to try and build desktop wallet here:
https://github.com/vitelabs/vite-wallet
- First issue is minor:
cd ../vite-web-wallet is wrong, should be:
cd vite-web-wallet
- Second issue: python 2 missing ?
[4/4] Building fresh packages...
[14/24] ⠈ scrypt
[-/24] ⠈ waiting...
[13/24] ⠈ websocket
[23/24] ⠈ node-sass
error V:\ViteDesktopWallet\vite-wallet\vite-web-wallet\node_modules\node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: V:\ViteDesktopWallet\vite-wallet\vite-web-wallet\node_modules\node-sass
Output:
Building: G:\Tools\NodeJS\node.exe V:\ViteDesktopWallet\vite-wallet\vite-web-wallet\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsas
s_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli 'G:\\Tools\\NodeJS\\node.exe',
gyp verb cli 'V:\\ViteDesktopWallet\\vite-wallet\\vite-web-wallet\\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@21.6.2 | win32 | 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 (V:\ViteDesktopWallet\vite-wallet\vite-web-wallet\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (V:\ViteDesktopWallet\vite-wallet\vite-web-wallet\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (V:\ViteDesktopWallet\vite-wallet\vite-web-wallet\node_modules\which\which.js:80:29)
gyp verb `which` failed at V:\ViteDesktopWallet\vite-wallet\vite-web-wallet\node_modules\which\which.js:89:16
gyp verb `which` failed at V:\ViteDesktopWallet\vite-wallet\vite-web-wallet\node_modules\isexe\index.js:42:5
gyp verb `which` failed at V:\ViteDesktopWallet\vite-wallet\vite-web-wallet\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:204:21)
gyp verb `which` failed python2 Error: not found: python2
gyp verb `which` failed at getNotFoundError (V:\ViteDesktopWallet\vite-wallet\vite-web-wallet\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (V:\ViteDesktopWallet\vite-wallet\vite-web-wallet\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (V:\ViteDesktopWallet\vite-wallet\vite-web-wallet\node_modules\which\which.js:80:29)
gyp verb `which` failed at V:\ViteDesktopWallet\vite-wallet\vite-web-wallet\node_modules\which\which.js:89:16
gyp verb `which` failed at V:\ViteDesktopWallet\vite-wallet\vite-web-wallet\node_modules\isexe\index.js:42:5
gyp verb `which` failed at V:\ViteDesktopWallet\vite-wallet\vite-web-wallet\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:204: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` succeeded python C:\Python312\python.EXE
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Python312\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "<string>", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
gyp ERR! stack SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
gyp ERR! stack
gyp ERR! stack at genericNodeError (node:internal/errors:984:15)
gyp ERR! stack at wrappedFn (node:internal/errors:538:14)
gyp ERR! stack at ChildProcess.exithandler (node:child_process:422:12)
gyp ERR! stack at ChildProcess.emit (node:events:519:28)
gyp ERR! stack at maybeClose (node:internal/child_process:1105:16)
gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:305:5)
gyp ERR! System Windows_NT 10.0.22631
gyp ERR! command "G:\\Tools\\NodeJS\\node.exe" "V:\\ViteDesktopWallet\\vite-wallet\\vite-web-wallet\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=
" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd V:\ViteDesktopWallet\vite-wallet\vite-web-wallet\node_modules\node-sass
gyp ERR! node -v v21.6.2
There may have also be some install issues, repeating it gives this log, not sure if this is problem as well, maybe not:
$ npm install node-sass
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @babel/plugin-transform-arrow-functions@7.0.0-beta.53
npm WARN Found: @babel/core@7.13.8
npm WARN node_modules/@babel/core
npm WARN peer @babel/core@"^7.0.0" from babel-loader@8.2.2
npm WARN node_modules/babel-loader
npm WARN dev babel-loader@"^8.0.2" from the root project
npm WARN 1 more (testwebworker)
npm WARN 76 more (babel-plugin-polyfill-corejs2, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer @babel/core@">=7.0.0-beta.50 <7.0.0-rc.0" from @babel/plugin-transform-arrow-functions@7.0.0-beta.53
npm WARN node_modules/@babel/plugin-transform-arrow-functions
npm WARN @babel/plugin-transform-arrow-functions@"7.0.0-beta.53" from @babel/preset-es2015@7.0.0-beta.53
npm WARN node_modules/@babel/preset-es2015
npm WARN
npm WARN Conflicting peer dependency: @babel/core@7.0.0-beta.56
skybu@SuperPC2023 MINGW64 /v/ViteDesktopWallet/vite-wallet/vite-web-wallet ((5f0d7ca3...))
$ npm install node-sass
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @babel/plugin-transform-arrow-functions@7.0.0-beta.53
npm WARN Found: @babel/core@7.13.8
npm WARN node_modules/@babel/core
npm WARN peer @babel/core@"^7.0.0" from babel-loader@8.2.2
npm WARN node_modules/babel-loader
npm WARN dev babel-loader@"^8.0.2" from the root project
npm WARN 1 more (testwebworker)
npm WARN 76 more (babel-plugin-polyfill-corejs2, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer @babel/core@">=7.0.0-beta.50 <7.0.0-rc.0" from @babel/plugin-transform-arrow-functions@7.0.0-beta.53
npm WARN node_modules/@babel/plugin-transform-arrow-functions
npm WARN @babel/plugin-transform-arrow-functions@"7.0.0-beta.53" from @babel/preset-es2015@7.0.0-beta.53
npm WARN node_modules/@babel/preset-es2015
npm WARN
npm WARN Conflicting peer dependency: @babel/core@7.0.0-beta.56
npm WARN node_modules/@babel/core
npm WARN peer @babel/core@">=7.0.0-beta.50 <7.0.0-rc.0" from @babel/plugin-transform-arrow-functions@7.0.0-beta.53
npm WARN node_modules/@babel/plugin-transform-arrow-functions
npm WARN @babel/plugin-transform-arrow-functions@"7.0.0-beta.53" from @babel/preset-es2015@7.0.0-beta.53
npm WARN node_modules/@babel/preset-es2015
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @babel/plugin-transform-block-scoped-functions@7.0.0-beta.53
npm WARN Found: @babel/core@7.13.8
npm WARN node_modules/@babel/core
npm WARN peer @babel/core@"^7.0.0" from babel-loader@8.2.2
npm WARN node_modules/babel-loader
npm WARN dev babel-loader@"^8.0.2" from the root project
npm WARN 1 more (testwebworker)
npm WARN 76 more (babel-plugin-polyfill-corejs2, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer @babel/core@">=7.0.0-beta.50 <7.0.0-rc.0" from @babel/plugin-transform-block-scoped-functions@7.0.0-beta.53
npm WARN node_modules/@babel/plugin-transform-block-scoped-functions
npm WARN @babel/plugin-transform-block-scoped-functions@"7.0.0-beta.53" from @babel/preset-es2015@7.0.0-beta.53
npm WARN node_modules/@babel/preset-es2015
npm WARN
npm WARN Conflicting peer dependency: @babel/core@7.0.0-beta.56
npm WARN node_modules/@babel/core
npm WARN peer @babel/core@">=7.0.0-beta.50 <7.0.0-rc.0" from @babel/plugin-transform-block-scoped-functions@7.0.0-beta.53
npm WARN node_modules/@babel/plugin-transform-block-scoped-functions
npm WARN @babel/plugin-transform-block-scoped-functions@"7.0.0-beta.53" from @babel/preset-es2015@7.0.0-beta.53
npm WARN node_modules/@babel/preset-es2015
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: @babel/plugin-transform-block-scoping@7.0.0-beta.53
npm WARN Found: @babel/core@7.13.8
npm WARN node_modules/@babel/core
npm WARN peer @babel/core@"^7.0.0" from babel-loader@8.2.2
npm WARN node_modules/babel-loader
npm WARN dev babel-loader@"^8.0.2" from the root project
npm WARN 1 more (testwebworker)
npm WARN 76 more (babel-plugin-polyfill-corejs2, ...)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer @babel/core@">=7.0.0-beta.50 <7.0.0-rc.0" from @babel/plugin-transform-block-scoping@7.0.0-beta.53
npm WARN node_modules/@babel/plugin-transform-block-scoping
npm WARN @babel/plugin-transform-block-scoping@"7.0.0-beta.53" from @babel/preset-es2015@7.0.0-beta.53
npm WARN node_modules/@babel/preset-es2015
I will try and install python 2 and then re-try build to see if that helps.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels