I'm trying to create new app using ionic v1 and I have the below errors
the following is my environment details
Environment:
Windows 11
Nodjs : v16.13.1
npm : v8.3.0
java: v1.8.0_311
android studio: 2020.3.1
cordova : v11.0.0
error details:
3232 error code 1
3233 error path C:\Users\amrel\todo\node_modules\node-sass
3234 error command failed
3235 error command C:\Windows\system32\cmd.exe /d /s /c node scripts/build.js
3236 error Building: C:\Program Files\nodejs\node.exe C:\Users\amrel\todo\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
3237 error gyp info it worked if it ends with ok
3237 error gyp verb cli [
3237 error gyp verb cli 'C:\Program Files\nodejs\node.exe',
3237 error gyp verb cli 'C:\Users\amrel\todo\node_modules\node-gyp\bin\node-gyp.js',
3237 error gyp verb cli 'rebuild',
3237 error gyp verb cli '--verbose',
3237 error gyp verb cli '--libsass_ext=',
3237 error gyp verb cli '--libsass_cflags=',
3237 error gyp verb cli '--libsass_ldflags=',
3237 error gyp verb cli '--libsass_library='
3237 error gyp verb cli ]
3237 error gyp info using node-gyp#3.8.0
3237 error gyp info using node#16.13.1 | win32 | x64
3237 error gyp verb command rebuild []
3237 error gyp verb command clean []
3237 error gyp verb clean removing "build" directory
3237 error gyp verb command configure []
3237 error gyp verb check python checking for Python executable "python2" in the PATH
3237 error gyp verb which failed Error: not found: python2
3237 error gyp verb which failed at getNotFoundError (C:\Users\amrel\todo\node_modules\which\which.js:13:12)
3237 error gyp verb which failed at F (C:\Users\amrel\todo\node_modules\which\which.js:68:19)
3237 error gyp verb which failed at E (C:\Users\amrel\todo\node_modules\which\which.js:80:29)
3237 error gyp verb which failed at C:\Users\amrel\todo\node_modules\which\which.js:89:16
3237 error gyp verb which failed at C:\Users\amrel\todo\node_modules\isexe\index.js:42:5
3237 error gyp verb which failed at C:\Users\amrel\todo\node_modules\isexe\windows.js:36:5
3237 error gyp verb which failed at FSReqCallback.oncomplete (node:fs:198:21)
3237 error gyp verb which failed python2 Error: not found: python2
3237 error gyp verb which failed at getNotFoundError (C:\Users\amrel\todo\node_modules\which\which.js:13:12)
3237 error gyp verb which failed at F (C:\Users\amrel\todo\node_modules\which\which.js:68:19)
3237 error gyp verb which failed at E (C:\Users\amrel\todo\node_modules\which\which.js:80:29)
3237 error gyp verb which failed at C:\Users\amrel\todo\node_modules\which\which.js:89:16
3237 error gyp verb which failed at C:\Users\amrel\todo\node_modules\isexe\index.js:42:5
3237 error gyp verb which failed at C:\Users\amrel\todo\node_modules\isexe\windows.js:36:5
3237 error gyp verb which failed at FSReqCallback.oncomplete (node:fs:198:21) {
3237 error gyp verb which failed code: 'ENOENT'
3237 error gyp verb which failed }
3237 error gyp verb check python checking for Python executable "python" in the PATH
3237 error gyp verb which failed Error: not found: python
3237 error gyp verb which failed at getNotFoundError (C:\Users\amrel\todo\node_modules\which\which.js:13:12)
3237 error gyp verb which failed at F (C:\Users\amrel\todo\node_modules\which\which.js:68:19)
3237 error gyp verb which failed at E (C:\Users\amrel\todo\node_modules\which\which.js:80:29)
3237 error gyp verb which failed at C:\Users\amrel\todo\node_modules\which\which.js:89:16
3237 error gyp verb which failed at C:\Users\amrel\todo\node_modules\isexe\index.js:42:5
3237 error gyp verb which failed at C:\Users\amrel\todo\node_modules\isexe\windows.js:36:5
3237 error gyp verb which failed at FSReqCallback.oncomplete (node:fs:198:21)
3237 error gyp verb which failed python Error: not found: python
3237 error gyp verb which failed at getNotFoundError (C:\Users\amrel\todo\node_modules\which\which.js:13:12)
3237 error gyp verb which failed at F (C:\Users\amrel\todo\node_modules\which\which.js:68:19)
3237 error gyp verb which failed at E (C:\Users\amrel\todo\node_modules\which\which.js:80:29)
3237 error gyp verb which failed at C:\Users\amrel\todo\node_modules\which\which.js:89:16
3237 error gyp verb which failed at C:\Users\amrel\todo\node_modules\isexe\index.js:42:5
3237 error gyp verb which failed at C:\Users\amrel\todo\node_modules\isexe\windows.js:36:5
3237 error gyp verb which failed at FSReqCallback.oncomplete (node:fs:198:21) {
3237 error gyp verb which failed code: 'ENOENT'
3237 error gyp verb which failed }
3237 error gyp verb could not find "python". checking python launcher
3237 error gyp verb could not find "python". guessing location
3237 error gyp verb ensuring that file exists: C:\Python27\python.exe
3237 error gyp ERR! configure error
3237 error gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
3237 error gyp ERR! stack at PythonFinder.failNoPython (C:\Users\amrel\todo\node_modules\node-gyp\lib\configure.js:484:19)
3237 error gyp ERR! stack at PythonFinder. (C:\Users\amrel\todo\node_modules\node-gyp\lib\configure.js:509:16)
3237 error gyp ERR! stack at callback (C:\Users\amrel\todo\node_modules\graceful-fs\polyfills.js:299:20)
3237 error gyp ERR! stack at FSReqCallback.oncomplete (node:fs:198:21)
3237 error gyp ERR! System Windows_NT 10.0.22000
3237 error gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\amrel\todo\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
3237 error gyp ERR! cwd C:\Users\amrel\todo\node_modules\node-sass
3237 error gyp ERR! node -v v16.13.1
3237 error gyp ERR! node-gyp -v v3.8.0
3237 error gyp ERR! not ok
3237 error Build failed with error code: 1
3238 verbose exit 1
3239 timing npm Completed in 11607ms
3240 verbose unfinished npm timer reify 1640215769849
3241 verbose unfinished npm timer reify:build 1640215777883
3242 verbose unfinished npm timer build 1640215777884
3243 verbose unfinished npm timer build:deps 1640215777885
3244 verbose unfinished npm timer build:run:postinstall 1640215778890
3245 verbose unfinished npm timer build:run:postinstall:node_modules/node-sass 1640215778890
3246 verbose code 1
3247 error A complete log of this run can be found in:
3247 error C:\Users\amrel\AppData\Local\npm-cache_logs\2021-12-22T23_29_29_495Z-debug-0.log
Related
I am trying to yarn install but keeps getting the following error:
Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (93)
Full error stack:
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 (C:\Users\Rahul Sharma\PycharmProjects\Trakkia_Frontend_V2\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (C:\Users\Rahul Sharma\PycharmProjects\Trakkia_Frontend_V2\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (C:\Users\Rahul Sharma\PycharmProjects\Trakkia_Frontend_V2\node_modules\which\which.js:80:29)
gyp verb `which` failed at C:\Users\Rahul Sharma\PycharmProjects\Trakkia_Frontend_V2\node_modules\which\which.js:89:16
gyp verb `which` failed at C:\Users\Rahul Sharma\PycharmProjects\Trakkia_Frontend_V2\node_modules\isexe\index.js:42:5
gyp verb `which` failed at C:\Users\Rahul Sharma\PycharmProjects\Trakkia_Frontend_V2\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:198:21)
gyp verb `which` failed python2 Error: not found: python2
gyp verb `which` failed at getNotFoundError (C:\Users\Rahul Sharma\PycharmProjects\Trakkia_Frontend_V2\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (C:\Users\Rahul Sharma\PycharmProjects\Trakkia_Frontend_V2\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (C:\Users\Rahul Sharma\PycharmProjects\Trakkia_Frontend_V2\node_modules\which\which.js:80:29)
gyp verb `which` failed at C:\Users\Rahul Sharma\PycharmProjects\Trakkia_Frontend_V2\node_modules\which\which.js:89:16
gyp verb `which` failed at C:\Users\Rahul Sharma\PycharmProjects\Trakkia_Frontend_V2\node_modules\isexe\index.js:42:5
gyp verb `which` failed at C:\Users\Rahul Sharma\PycharmProjects\Trakkia_Frontend_V2\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:198: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:\Users\Rahul Sharma\AppData\Local\Programs\Python\Python38\python.EXE
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Users\Rahul Sharma\AppData\Local\Programs\Python\Python38\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: invalid syntax
gyp ERR! stack
gyp ERR! stack at ChildProcess.exithandler (node:child_process:398:12)
gyp ERR! stack at ChildProcess.emit (node:events:527:28)
gyp ERR! stack at maybeClose (node:internal/child_process:1092:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
gyp ERR! System Windows_NT 10.0.22000
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Rahul Sharma\\PycharmProjects\\Trakkia_Frontend_V2\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass
_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\Users\Rahul Sharma\PycharmProjects\Trakkia_Frontend_V2\node_modules\node-sass
gyp ERR! node -v v16.15.0
earlier the project was running fine. The only change I did was updating the node version form 12 to latest.
How do I resolve this ?
You need to build the binding for your current environment. You can build it by running the following command:
npm rebuild node-sass
As title. I've maintained a project that web page is developed using Angular.js and some utilities, but something wrong when I use the "npm install" command, and the error log was shown below....
2094 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Gary.Lu\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
2095 verbose node v16.13.1
2096 verbose npm v8.3.0
2097 error code 1
2098 error path C:\Users\Gary.Lu\Documents\ITTS Projects\AXMES\MAIN\ITTS-MES\WEB\node_modules\node-sass
2099 error command failed
2100 error command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/build.js
2101 error Building: C:\Program Files\nodejs\node.exe C:\Users\Gary.Lu\Documents\MyWeb\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
2102 error gyp info it worked if it ends with ok
2102 error gyp verb cli [
2102 error gyp verb cli 'C:\\Program Files\\nodejs\\node.exe',
2102 error gyp verb cli 'C:\\Users\\Gary.Lu\\Documents\\MyWeb\\node_modules\\node-gyp\\bin\\node-gyp.js',
2102 error gyp verb cli 'rebuild',
2102 error gyp verb cli '--verbose',
2102 error gyp verb cli '--libsass_ext=',
2102 error gyp verb cli '--libsass_cflags=',
2102 error gyp verb cli '--libsass_ldflags=',
2102 error gyp verb cli '--libsass_library='
2102 error gyp verb cli ]
2102 error gyp info using node-gyp#3.8.0
2102 error gyp info using node#16.13.1 | win32 | x64
2102 error gyp verb command rebuild []
2102 error gyp verb command clean []
2102 error gyp verb clean removing "build" directory
2102 error gyp verb command configure []
2102 error gyp verb check python checking for Python executable "python2" in the PATH
2102 error gyp verb `which` failed Error: not found: python2
2102 error gyp verb `which` failed at getNotFoundError (C:\Users\Gary.Lu\Documents\MyWeb\node_modules\which\which.js:13:12)
2102 error gyp verb `which` failed at F (C:\Users\Gary.Lu\Documents\MyWeb\node_modules\which\which.js:68:19)
2102 error gyp verb `which` failed at E (C:\Users\Gary.Lu\Documents\MyWeb\node_modules\which\which.js:80:29)
2102 error gyp verb `which` failed at C:\Users\Gary.Lu\Documents\MyWeb\node_modules\which\which.js:89:16
2102 error gyp verb `which` failed at C:\Users\Gary.Lu\Documents\MyWeb\node_modules\isexe\index.js:42:5
2102 error gyp verb `which` failed at C:\Users\Gary.Lu\Documents\MyWeb\node_modules\isexe\windows.js:36:5
2102 error gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:198:21)
2102 error gyp verb `which` failed python2 Error: not found: python2
2102 error gyp verb `which` failed at getNotFoundError (C:\Users\Gary.Lu\Documents\MyWeb\node_modules\which\which.js:13:12)
2102 error gyp verb `which` failed at F (C:\Users\Gary.Lu\Documents\MyWeb\node_modules\which\which.js:68:19)
2102 error gyp verb `which` failed at E (C:\Users\Gary.Lu\Documents\MyWeb\node_modules\which\which.js:80:29)
2102 error gyp verb `which` failed at C:\Users\Gary.Lu\Documents\MyWeb\node_modules\which\which.js:89:16
2102 error gyp verb `which` failed at C:\Users\Gary.Lu\Documents\MyWeb\node_modules\isexe\index.js:42:5
2102 error gyp verb `which` failed at C:\Users\Gary.Lu\Documents\MyWeb\node_modules\isexe\windows.js:36:5
2102 error gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:198:21) {
2102 error gyp verb `which` failed code: 'ENOENT'
2102 error gyp verb `which` failed }
2102 error gyp verb check python checking for Python executable "python" in the PATH
2102 error gyp verb `which` succeeded python C:\Python310\python.EXE
2102 error gyp ERR! configure error
2102 error gyp ERR! stack Error: Command failed: C:\Python310\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
2102 error gyp ERR! stack File "<string>", line 1
2102 error gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
2102 error gyp ERR! stack ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2102 error gyp ERR! stack SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
2102 error gyp ERR! stack
2102 error gyp ERR! stack at ChildProcess.exithandler (node:child_process:397:12)
2102 error gyp ERR! stack at ChildProcess.emit (node:events:390:28)
2102 error gyp ERR! stack at maybeClose (node:internal/child_process:1064:16)
2102 error gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
2102 error gyp ERR! System Windows_NT 10.0.19044
2102 error gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Gary.Lu\\Documents\\MyWeb\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
2102 error gyp ERR! cwd C:\Users\Gary.Lu\Documents\MyWeb\node_modules\node-sass
2102 error gyp ERR! node -v v16.13.1
2102 error gyp ERR! node-gyp -v v3.8.0
2102 error gyp ERR! not ok
2102 error Build failed with error code: 1
2103 verbose exit 1
2104 timing npm Completed in 53164ms
2105 verbose unfinished npm timer reify 1640746055969
2106 verbose unfinished npm timer reify:build 1640746094013
2107 verbose unfinished npm timer build 1640746094014
2108 verbose unfinished npm timer build:deps 1640746094014
2109 verbose unfinished npm timer build:run:postinstall 1640746099176
2110 verbose unfinished npm timer build:run:postinstall:node_modules/node-sass 1640746099176
2111 verbose code 1
2112 error A complete log of this run can be found in:
2112 error C:\Users\Gary.Lu\AppData\Local\npm-cache\_logs\2021-12-29T02_47_34_408Z-debug-0.log
But I didn't met the same erroe when I build another project that using Angular 12. Is it matters or do I missed something that I can't build without it? Could someone guide me to solve it?
I had this problem too,
what I did :
1- npm uninstall node-sass
2- npm i -D sass
3- npm i
This usually happens because your environment has changed since running npm install. Run npm rebuild node-sass to download the binding for your current environment."
So I ran npm rebuild node-sass and that worked! Then npm install and everything went ok.
node-sass require limited Node Version, you need check the node's version is which node-sass compatible.
node.js - v12.16.2
npm - 6.14.4
OS - windows 10
When I run npm ci i get error.
The complete error log:
npm WARN prepare removing existing node_modules/ before installation
> fsevents#1.2.4 install G:\Agrima\workspace\VoTT\node_modules\fsevents
> node install
> node-sass#4.11.0 install G:\Agrima\workspace\VoTT\node_modules\node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.11.0/win32-x64-72_binding.node Cannot download "https://github.com/sass/node-sass/releases/download/v4.11.0/win32-x64-72_binding.node":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
> node-sass#4.11.0 postinstall G:\Agrima\workspace\VoTT\node_modules\node-sass
> node scripts/build.js
Building: C:\Program Files\nodejs\node.exe G:\Agrima\workspace\VoTT\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 'C:\\Program Files\\nodejs\\node.exe', gyp verb cli 'G:\\Agrima\\workspace\\VoTT\\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.16.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 (G:\Agrima\workspace\VoTT\node_modules\which\which.js:13:12) gyp verb `which` failed at F (G:\Agrima\workspace\VoTT\node_modules\which\which.js:68:19) gyp verb `which` failed at E (G:\Agrima\workspace\VoTT\node_modules\which\which.js:80:29) gyp verb `which` failed at G:\Agrima\workspace\VoTT\node_modules\which\which.js:89:16 gyp verb `which` failed at G:\Agrima\workspace\VoTT\node_modules\isexe\index.js:42:5 gyp verb `which` failed at G:\Agrima\workspace\VoTT\node_modules\isexe\windows.js:36:5 gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:167:21) gyp verb `which` failed python2 Error: not found: python2 gyp verb `which` failed at getNotFoundError (G:\Agrima\workspace\VoTT\node_modules\which\which.js:13:12) gyp verb `which` failed at F (G:\Agrima\workspace\VoTT\node_modules\which\which.js:68:19) gyp verb `which` failed at E (G:\Agrima\workspace\VoTT\node_modules\which\which.js:80:29) gyp verb `which` failed at G:\Agrima\workspace\VoTT\node_modules\which\which.js:89:16 gyp verb `which` failed at G:\Agrima\workspace\VoTT\node_modules\isexe\index.js:42:5 gyp verb `which` failed at G:\Agrima\workspace\VoTT\node_modules\isexe\windows.js:36:5 gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:167:21) { gyp verb `which` failed stack: 'Error: not found: python2\n' + gyp verb `which` failed ' at getNotFoundError (G:\\Agrima\\workspace\\VoTT\\node_modules\\which\\which.js:13:12)\n'
+ gyp verb `which` failed ' at F (G:\\Agrima\\workspace\\VoTT\\node_modules\\which\\which.js:68:19)\n'
+ gyp verb `which` failed ' at E (G:\\Agrima\\workspace\\VoTT\\node_modules\\which\\which.js:80:29)\n'
+ gyp verb `which` failed ' at G:\\Agrima\\workspace\\VoTT\\node_modules\\which\\which.js:89:16\n' + gyp verb `which` failed ' at G:\\Agrima\\workspace\\VoTT\\node_modules\\isexe\\index.js:42:5\n' + gyp verb `which` failed ' at G:\\Agrima\\workspace\\VoTT\\node_modules\\isexe\\windows.js:36:5\n' + gyp verb `which` failed ' at FSReqCallback.oncomplete (fs.js:167: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:\Program Files\Python36\python.EXE gyp ERR! configure error gyp ERR! stack Error: Command failed: C:\Program Files\Python36\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: invalid syntax gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:303:12) gyp ERR! stack at ChildProcess.emit (events.js:310:20) gyp ERR! stack at maybeClose (internal/child_process.js:1021:16) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) gyp ERR! System Windows_NT
10.0.17134 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "G:\\Agrima\\workspace\\VoTT\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd G:\Agrima\workspace\VoTT\node_modules\node-sass gyp ERR! node -v v12.16.2 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok Build failed with error code: 1 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass#4.11.0 postinstall: `node scripts/build.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-sass#4.11.0 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\LENOVO\AppData\Roaming\npm-cache\_logs\2020-04-23T05_50_10_745Z-debug.log
Tried to do npm install, etc which was found in other sources, But failed each time.
manual setup with zurb foundation 6 doesn't work.
my steps:
change to directory xampp/htdocs/test (test folder)
open command line and type: git clone https://github.com/zurb/foundation-sites-template projectname
*name should be the same (=projectname)
i installed the needed dependencies: cd projectname npm install
my result in command line:
C:\xampp\htdocs\test\projectname>npm install
npm WARN deprecated minimatch#2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch#0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs#1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs#^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
> node-sass#3.13.1 install C:\xampp\htdocs\test\projectname\node_modules\node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-59_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-59_binding.node":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
> node-sass#3.13.1 postinstall C:\xampp\htdocs\test\projectname\node_modules\node-sass
> node scripts/build.js
Building: C:\Program Files\nodejs\node.exe C:\xampp\htdocs\test\projectname\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 [ 'C:\\Program Files\\nodejs\\node.exe',
gyp verb cli 'C:\\xampp\\htdocs\\test\\projectname\\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 info using node-gyp#3.6.2
gyp info using node#9.2.0 | 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 (C:\xampp\htdocs\test\projectname\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (C:\xampp\htdocs\test\projectname\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (C:\xampp\htdocs\test\projectname\node_modules\which\which.js:80:29)
gyp verb `which` failed at C:\xampp\htdocs\test\projectname\node_modules\which\which.js:89:16
gyp verb `which` failed at C:\xampp\htdocs\test\projectname\node_modules\isexe\index.js:42:5
gyp verb `which` failed at C:\xampp\htdocs\test\projectname\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:166:21)
gyp verb `which` failed python2 { Error: not found: python2
gyp verb `which` failed at getNotFoundError (C:\xampp\htdocs\test\projectname\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (C:\xampp\htdocs\test\projectname\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (C:\xampp\htdocs\test\projectname\node_modules\which\which.js:80:29)
gyp verb `which` failed at C:\xampp\htdocs\test\projectname\node_modules\which\which.js:89:16
gyp verb `which` failed at C:\xampp\htdocs\test\projectname\node_modules\isexe\index.js:42:5
gyp verb `which` failed at C:\xampp\htdocs\test\projectname\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:166:21)
gyp verb `which` failed stack: 'Error: not found: python2\n at getNotFoundError (C:\\xampp\\htdocs\\test\\projectname\\node_modules\\which\\which.js:13:12)\n at F (C:\\xampp\\htdocs\\test\\projectname\\node_modules\\which\\which.js:68:19)\n at E (C:\\xampp\\htdocs\\test\\projectname\\node_modules\\which\\which.js:80:29)\n at C:\\xampp\\htdocs\\test\\projectname\\node_modules\\which\\which.js:89:16\n at C:\\xampp\\htdocs\\test\\projectname\\node_modules\\isexe\\index.js:42:5\n at C:\\xampp\\htdocs\\test\\projectname\\node_modules\\isexe\\windows.js:36:5\n at FSReqWrap.oncomplete (fs.js:166:21)',
gyp verb `which` failed code: 'ENOENT' }
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 (C:\xampp\htdocs\test\projectname\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (C:\xampp\htdocs\test\projectname\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (C:\xampp\htdocs\test\projectname\node_modules\which\which.js:80:29)
gyp verb `which` failed at C:\xampp\htdocs\test\projectname\node_modules\which\which.js:89:16
gyp verb `which` failed at C:\xampp\htdocs\test\projectname\node_modules\isexe\index.js:42:5
gyp verb `which` failed at C:\xampp\htdocs\test\projectname\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:166:21)
gyp verb `which` failed python { Error: not found: python
gyp verb `which` failed at getNotFoundError (C:\xampp\htdocs\test\projectname\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (C:\xampp\htdocs\test\projectname\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (C:\xampp\htdocs\test\projectname\node_modules\which\which.js:80:29)
gyp verb `which` failed at C:\xampp\htdocs\test\projectname\node_modules\which\which.js:89:16
gyp verb `which` failed at C:\xampp\htdocs\test\projectname\node_modules\isexe\index.js:42:5
gyp verb `which` failed at C:\xampp\htdocs\test\projectname\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:166:21)
gyp verb `which` failed stack: 'Error: not found: python\n at getNotFoundError (C:\\xampp\\htdocs\\test\\projectname\\node_modules\\which\\which.js:13:12)\n at F (C:\\xampp\\htdocs\\test\\projectname\\node_modules\\which\\which.js:68:19)\n at E (C:\\xampp\\htdocs\\test\\projectname\\node_modules\\which\\which.js:80:29)\n at C:\\xampp\\htdocs\\test\\projectname\\node_modules\\which\\which.js:89:16\n at C:\\xampp\\htdocs\\test\\projectname\\node_modules\\isexe\\index.js:42:5\n at C:\\xampp\\htdocs\\test\\projectname\\node_modules\\isexe\\windows.js:36:5\n at FSReqWrap.oncomplete (fs.js:166:21)',
gyp verb `which` failed code: 'ENOENT' }
gyp verb could not find "python". checking python launcher
gyp verb could not find "python". guessing location
gyp verb ensuring that file exists: C:\Python27\python.exe
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 (C:\xampp\htdocs\test\projectname\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder.<anonymous> (C:\xampp\htdocs\test\projectname\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at C:\xampp\htdocs\test\projectname\node_modules\node-gyp\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:166:21)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\xampp\\htdocs\\test\\projectname\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\xampp\htdocs\test\projectname\node_modules\node-sass
gyp ERR! node -v v9.2.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN The package gulp-autoprefixer is included as both a dev and production dependency.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass#3.13.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass#3.13.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\......\AppData\Roaming\npm-cache\_logs\2017-11-21T19_06_03_400Z-debug.log
more information:
git for windows 2.15.0
node js v9.2.0
*sorry for repeating posts - its my first one here
node-sass does not provide binaries for all environments.
You have to run npm i -g --production windows-build-tools (which is just npm install --global --production windows-build-tools)
https://github.com/felixrieseberg/windows-build-tools will install the dependencies for node-gyp like Python 2 to build node-sass from the source code.
node-gyp is a cross-platform command-line tool written in Node.js for
compiling native addon modules for Node.js. It bundles the gyp project
used by the Chromium team and takes away the pain of dealing with the
various differences in build platforms. It is the replacement to the
node-waf program which is removed for node v0.8. If you have a native
addon for node that still has a wscript file, then you should
definitely add a binding.gyp file to support the latest versions of
node.
https://github.com/nodejs/node-gyp
I've installed latest Node JS ( v 8.1.0 ), Ionic and Cordova then tried to install node_modules using npm install command in ionic demo tab project created using ionic start myApp tabs and I got the following error. I'm using Windows 10 Pro. I have tried lot but yet to resolve the worry. any help would be greatly appreciated.
npm install
✖ Running command - failed!
[ERROR] An error occurred while running npm install (exit code 1):
npm WARN prefer global node-gyp#3.6.2 should be installed with -g
> node-sass#4.5.0 install E:\Hybrid Project Locker\NFB\node_modules\node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.5.0/win32-x64-57_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.5.0/win32-x64-57_binding.node":
HTTP error 404 Not Found
Hint: If github.com is not accessible in your location
try setting a proxy via HTTP_PROXY, e.g.
export HTTP_PROXY=http://example.com:1234
or configure npm proxy via
npm config set proxy http://example.com:8080
> fsevents#1.1.1 install E:\Hybrid Project Locker\NFB\node_modules\fsevents
> node install
> node-sass#4.5.0 postinstall E:\Hybrid Project Locker\NFB\node_modules\node-sass
> node scripts/build.js
Building: C:\Program Files\nodejs\node.exe E:\Hybrid Project Locker\NFB\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldf
lags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
gyp verb cli 'E:\\Hybrid Project Locker\\NFB\\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 info using node-gyp#3.6.2
gyp info using node#8.1.0 | 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 (E:\Hybrid Project Locker\NFB\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (E:\Hybrid Project Locker\NFB\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (E:\Hybrid Project Locker\NFB\node_modules\which\which.js:80:29)
gyp verb `which` failed at E:\Hybrid Project Locker\NFB\node_modules\which\which.js:89:16
gyp verb `which` failed at E:\Hybrid Project Locker\NFB\node_modules\isexe\index.js:42:5
gyp verb `which` failed at E:\Hybrid Project Locker\NFB\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb `which` failed python2 { Error: not found: python2
gyp verb `which` failed at getNotFoundError (E:\Hybrid Project Locker\NFB\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (E:\Hybrid Project Locker\NFB\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (E:\Hybrid Project Locker\NFB\node_modules\which\which.js:80:29)
gyp verb `which` failed at E:\Hybrid Project Locker\NFB\node_modules\which\which.js:89:16
gyp verb `which` failed at E:\Hybrid Project Locker\NFB\node_modules\isexe\index.js:42:5
gyp verb `which` failed at E:\Hybrid Project Locker\NFB\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:152:21) code: 'ENOENT' }
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 (E:\Hybrid Project Locker\NFB\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (E:\Hybrid Project Locker\NFB\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (E:\Hybrid Project Locker\NFB\node_modules\which\which.js:80:29)
gyp verb `which` failed at E:\Hybrid Project Locker\NFB\node_modules\which\which.js:89:16
gyp verb `which` failed at E:\Hybrid Project Locker\NFB\node_modules\isexe\index.js:42:5
gyp verb `which` failed at E:\Hybrid Project Locker\NFB\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb `which` failed python { Error: not found: python
gyp verb `which` failed at getNotFoundError (E:\Hybrid Project Locker\NFB\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (E:\Hybrid Project Locker\NFB\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (E:\Hybrid Project Locker\NFB\node_modules\which\which.js:80:29)
gyp verb `which` failed at E:\Hybrid Project Locker\NFB\node_modules\which\which.js:89:16
gyp verb `which` failed at E:\Hybrid Project Locker\NFB\node_modules\isexe\index.js:42:5
gyp verb `which` failed at E:\Hybrid Project Locker\NFB\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:152:21) code: 'ENOENT' }
gyp verb could not find "python". checking python launcher
gyp verb could not find "python". guessing location
gyp verb ensuring that file exists: C:\Python27\python.exe
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 (E:\Hybrid Project Locker\NFB\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder.<anonymous> (E:\Hybrid Project Locker\NFB\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at E:\Hybrid Project Locker\NFB\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 10.0.10586
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "E:\\Hybrid Project Locker\\NFB\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--li
bsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd E:\Hybrid Project Locker\NFB\node_modules\node-sass
gyp ERR! node -v v8.1.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN #angular/http#2.4.10 requires a peer of #angular/platform-browser#2.4.10 but none was installed.
npm WARN #ionic/cli-plugin-ionic-angular#1.3.0 requires a peer of #ionic/app-scripts#^1.3.7 but none was installed.
npm WARN cordova-ios#4.4.0 had bundled packages that do not match the required version(s). They have been replaced with non-bundled versions.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass#4.5.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass#4.5.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Anoop M\AppData\Roaming\npm-cache\_logs\2017-06-10T00_37_25_356Z-debug.log
Try with Node.js v6 and it should work. This is because Node Sass v4.5.0 doesn't support Node.js v8
You can check the supported environments for Node Sass v4.5.0 here: https://github.com/sass/node-sass/releases/tag/v4.5.0
Change to node-sass 4.5.3 as it fixed error installation on node 8 https://github.com/sass/node-sass/releases
Remove the (webpack, sass-loader/less-loader and node-sass) entry in package.json.
Delete the node_modules folder
install with "npm install sass-loader node-sass webpack".
This worked for me.
Try to run this command:
npm install --unsafe-perm node-sass