cobiwave/simplefolio

Unable to install on windows 10

Open

#100 opened on Jun 7, 2021

View on GitHub
 (6 comments) (0 reactions) (1 assignee)HTML (11,695 stars) (4,568 forks)batch import
bughelp wantedpending

Description

npm install command fails with following error:

3753 timing command:install Completed in 54409ms
3754 verbose stack Error: command failed
3754 verbose stack     at ChildProcess.<anonymous> (C:\Users\Saurabh\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\promise-spawn\index.js:64:27)
3754 verbose stack     at ChildProcess.emit (node:events:394:28)
3754 verbose stack     at maybeClose (node:internal/child_process:1067:16)
3754 verbose stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
3755 verbose pkgid node-sass@4.14.1
3756 verbose cwd C:\Users\Saurabh\non-React_webProjects\simplefolio
3757 verbose Windows_NT 10.0.19041
3758 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Saurabh\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
3759 verbose node v16.3.0
3760 verbose npm  v7.16.0
3761 error code 1
3762 error path C:\Users\Saurabh\non-React_webProjects\simplefolio\node_modules\node-sass
3763 error command failed
3764 error command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/build.js
3765 error Building: C:\Program Files\nodejs\node.exe C:\Users\Saurabh\non-React_webProjects\simplefolio\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
3766 error gyp info it worked if it ends with ok
3766 error gyp verb cli [
3766 error gyp verb cli   'C:\\Program Files\\nodejs\\node.exe',
3766 error gyp verb cli   'C:\\Users\\Saurabh\\non-React_webProjects\\simplefolio\\node_modules\\node-gyp\\bin\\node-gyp.js',
3766 error gyp verb cli   'rebuild',
3766 error gyp verb cli   '--verbose',
3766 error gyp verb cli   '--libsass_ext=',
3766 error gyp verb cli   '--libsass_cflags=',
3766 error gyp verb cli   '--libsass_ldflags=',
3766 error gyp verb cli   '--libsass_library='
3766 error gyp verb cli ]
3766 error gyp info using node-gyp@3.8.0
3766 error gyp info using node@16.3.0 | win32 | x64
3766 error gyp verb command rebuild []
3766 error gyp verb command clean []
3766 error gyp verb clean removing "build" directory
3766 error gyp verb command configure []
3766 error gyp verb check python checking for Python executable "python2" in the PATH
3766 error gyp verb `which` failed Error: not found: python2
3766 error gyp verb `which` failed     at getNotFoundError (C:\Users\Saurabh\non-React_webProjects\simplefolio\node_modules\which\which.js:13:12)
3766 error gyp verb `which` failed     at F (C:\Users\Saurabh\non-React_webProjects\simplefolio\node_modules\which\which.js:68:19)
3766 error gyp verb `which` failed     at E (C:\Users\Saurabh\non-React_webProjects\simplefolio\node_modules\which\which.js:80:29)
3766 error gyp verb `which` failed     at C:\Users\Saurabh\non-React_webProjects\simplefolio\node_modules\which\which.js:89:16
3766 error gyp verb `which` failed     at C:\Users\Saurabh\non-React_webProjects\simplefolio\node_modules\isexe\index.js:42:5
3766 error gyp verb `which` failed     at C:\Users\Saurabh\non-React_webProjects\simplefolio\node_modules\isexe\windows.js:36:5
3766 error gyp verb `which` failed     at FSReqCallback.oncomplete (node:fs:195:21)
3766 error gyp verb `which` failed  python2 Error: not found: python2
3766 error gyp verb `which` failed     at getNotFoundError (C:\Users\Saurabh\non-React_webProjects\simplefolio\node_modules\which\which.js:13:12)
3766 error gyp verb `which` failed     at F (C:\Users\Saurabh\non-React_webProjects\simplefolio\node_modules\which\which.js:68:19)
3766 error gyp verb `which` failed     at E (C:\Users\Saurabh\non-React_webProjects\simplefolio\node_modules\which\which.js:80:29)
3766 error gyp verb `which` failed     at C:\Users\Saurabh\non-React_webProjects\simplefolio\node_modules\which\which.js:89:16
3766 error gyp verb `which` failed     at C:\Users\Saurabh\non-React_webProjects\simplefolio\node_modules\isexe\index.js:42:5
3766 error gyp verb `which` failed     at C:\Users\Saurabh\non-React_webProjects\simplefolio\node_modules\isexe\windows.js:36:5
3766 error gyp verb `which` failed     at FSReqCallback.oncomplete (node:fs:195:21) {
3766 error gyp verb `which` failed   code: 'ENOENT'
3766 error gyp verb `which` failed }
3766 error gyp verb check python checking for Python executable "python" in the PATH
3766 error gyp verb `which` succeeded python C:\Python38\python.EXE
3766 error gyp ERR! configure error
3766 error gyp ERR! stack Error: Command failed: C:\Python38\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
3766 error gyp ERR! stack   File "<string>", line 1
3766 error gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
3766 error gyp ERR! stack                       ^
3766 error gyp ERR! stack SyntaxError: invalid syntax
3766 error gyp ERR! stack
3766 error gyp ERR! stack     at ChildProcess.exithandler (node:child_process:326:12)
3766 error gyp ERR! stack     at ChildProcess.emit (node:events:394:28)
3766 error gyp ERR! stack     at maybeClose (node:internal/child_process:1067:16)
3766 error gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
3766 error gyp ERR! System Windows_NT 10.0.19041
3766 error gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Saurabh\\non-React_webProjects\\simplefolio\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
3766 error gyp ERR! cwd C:\Users\Saurabh\non-React_webProjects\simplefolio\node_modules\node-sass
3766 error gyp ERR! node -v v16.3.0
3766 error gyp ERR! node-gyp -v v3.8.0
3766 error gyp ERR! not ok
3766 error Build failed with error code: 1
3767 verbose exit 1

Contributor guide