I have problem with GULP "Error: Cannot find module 'gulp-sass' " - node.js

My PC macOS Monterey version 12.4
MacBook Air (M1, 2020)
Apple M1
The problem occurs when i download the repo. I run the command in terminal "npm install". Then i types the "gulp" command.
I tried to delete node_modules package.json with sudo and then npm
install but it did not help
When he tries to fire the gulp after npm i
command "npm rebuild node-sass" dont help me to
name.name#MacBook-NameName project % npm install
npm WARN deprecated chokidar#2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated svgo#1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
npm WARN deprecated fsevents#1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated tar#2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
npm WARN deprecated har-validator#5.1.5: this library is no longer supported
npm WARN deprecated uuid#3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated source-map-resolve#0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated resolve-url#0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated source-map-url#0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated urix#0.1.0: Please see https://github.com/lydell/urix#deprecated
> fsevents#1.2.13 install /Users/project/urlproject/project/node_modules/glob-watcher/node_modules/fsevents
> node install.js
SOLINK_MODULE(target) Release/.node
CXX(target) Release/obj.target/fse/fsevents.o
SOLINK_MODULE(target) Release/fse.node
> node-sass#4.14.1 install /Users/project/urlproject/project/node_modules/node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.14.1/darwin-arm64-83_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.14.1/darwin-arm64-83_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
> es5-ext#0.10.61 postinstall /Users/project/urlproject/project/node_modules/es5-ext
> node -e "try{require('./_postinstall')}catch(e){}" || exit 0
> node-sass#4.14.1 postinstall /Users/project/urlproject/project/node_modules/node-sass
> node scripts/build.js
Building: /Users/name.name/.nvm/versions/node/v14.19.3/bin/node /Users/project/urlproject/project/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 '/Users/name.name/.nvm/versions/node/v14.19.3/bin/node',
gyp verb cli '/Users/project/urlproject/project/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#14.19.3 | darwin | arm64
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 (/Users/project/urlproject/project/node_modules/which/which.js:13:12)
gyp verb `which` failed at F (/Users/project/urlproject/project/node_modules/which/which.js:68:19)
gyp verb `which` failed at E (/Users/project/urlproject/project/node_modules/which/which.js:80:29)
gyp verb `which` failed at /Users/project/urlproject/project/node_modules/which/which.js:89:16
gyp verb `which` failed at /Users/project/urlproject/project/node_modules/isexe/index.js:42:5
gyp verb `which` failed at /Users/project/urlproject/project/node_modules/isexe/mode.js:8:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:192:21)
gyp verb `which` failed python2 Error: not found: python2
gyp verb `which` failed at getNotFoundError (/Users/project/urlproject/project/node_modules/which/which.js:13:12)
gyp verb `which` failed at F (/Users/project/urlproject/project/node_modules/which/which.js:68:19)
gyp verb `which` failed at E (/Users/project/urlproject/project/node_modules/which/which.js:80:29)
gyp verb `which` failed at /Users/project/urlproject/project/node_modules/which/which.js:89:16
gyp verb `which` failed at /Users/project/urlproject/project/node_modules/isexe/index.js:42:5
gyp verb `which` failed at /Users/project/urlproject/project/node_modules/isexe/mode.js:8:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:192: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 (/Users/project/urlproject/project/node_modules/which/which.js:13:12)
gyp verb `which` failed at F (/Users/project/urlproject/project/node_modules/which/which.js:68:19)
gyp verb `which` failed at E (/Users/project/urlproject/project/node_modules/which/which.js:80:29)
gyp verb `which` failed at /Users/project/urlproject/project/node_modules/which/which.js:89:16
gyp verb `which` failed at /Users/project/urlproject/project/node_modules/isexe/index.js:42:5
gyp verb `which` failed at /Users/project/urlproject/project/node_modules/isexe/mode.js:8:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:192:21)
gyp verb `which` failed python Error: not found: python
gyp verb `which` failed at getNotFoundError (/Users/project/urlproject/project/node_modules/which/which.js:13:12)
gyp verb `which` failed at F (/Users/project/urlproject/project/node_modules/which/which.js:68:19)
gyp verb `which` failed at E (/Users/project/urlproject/project/node_modules/which/which.js:80:29)
gyp verb `which` failed at /Users/project/urlproject/project/node_modules/which/which.js:89:16
gyp verb `which` failed at /Users/project/urlproject/project/node_modules/isexe/index.js:42:5
gyp verb `which` failed at /Users/project/urlproject/project/node_modules/isexe/mode.js:8:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:192: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 (/Users/project/urlproject/project/node_modules/node-gyp/lib/configure.js:484:19)
gyp ERR! stack at PythonFinder.<anonymous> (/Users/project/urlproject/project/node_modules/node-gyp/lib/configure.js:406:16)
gyp ERR! stack at F (/Users/project/urlproject/project/node_modules/which/which.js:68:16)
gyp ERR! stack at E (/Users/project/urlproject/project/node_modules/which/which.js:80:29)
gyp ERR! stack at /Users/project/urlproject/project/node_modules/which/which.js:89:16
gyp ERR! stack at /Users/project/urlproject/project/node_modules/isexe/index.js:42:5
gyp ERR! stack at /Users/project/urlproject/project/node_modules/isexe/mode.js:8:5
gyp ERR! stack at FSReqCallback.oncomplete (fs.js:192:21)
gyp ERR! System Darwin 21.5.0
gyp ERR! command "/Users/name.name/.nvm/versions/node/v14.19.3/bin/node" "/Users/project/urlproject/project/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/project/urlproject/project/node_modules/node-sass
gyp ERR! node -v v14.19.3
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.14.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass#4.14.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! /Users/name.name/.npm/_logs/2022-06-08T10_52_03_554Z-debug.log

Related

errors while Installing Ngx-Admin

I'm new to Angular and try to install ngx-admin template but I got these errors. how to fix these errors?
npm WARN deprecated uuid#3.3.2: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated mkdirp#0.5.1: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated coffee-script#1.12.7: CoffeeScript on NPM `enter code here`has moved to "coffeescript" (no hyphen)
npm WARN deprecated #types/googlemaps#3.43.3: Types for the Google Maps browser API have moved to #types/google.maps. Note: these types are not for the googlemaps npm package, which is a Node API.
npm WARN deprecated viz.js#1.8.0: no longer supported
npm WARN deprecated tar#2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.
npm WARN deprecated tslint#6.1.3: TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534
for more information.
npm WARN deprecated core-js#2.5.1: core-js#<3.4 is no longer maintained and not recommended for usage due to the number of issues. Because
of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please,
upgrade your dependencies to the actual version of core-js.
npm WARN deprecated ckeditor#4.7.3: We have renamed the #ckeditor package. New versions are available under the #ckeditor4 name.
npm ERR! code 1
npm ERR! path C:\Users\admin\ngx-admin\node_modules\node-sass
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/build.js
npm ERR! Building: C:\Program Files\nodejs\node.exe C:\Users\admin\ngx-admin\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp verb cli [
npm ERR! gyp verb cli 'C:\\Program Files\\nodejs\\node.exe',
npm ERR! gyp verb cli 'C:\\Users\\admin\\ngx-admin\\node_modules\\node-gyp\\bin\\node-gyp.js',
npm ERR! gyp verb cli 'rebuild',
npm ERR! gyp verb cli '--verbose',
npm ERR! gyp verb cli '--libsass_ext=',
npm ERR! gyp verb cli '--libsass_cflags=',
npm ERR! gyp verb cli '--libsass_ldflags=',
npm ERR! gyp verb cli '--libsass_library='
npm ERR! gyp verb cli ]
npm ERR! gyp info using node-gyp#3.8.0
npm ERR! gyp info using node#16.14.0 | win32 | x64
npm ERR! gyp verb command rebuild []
npm ERR! gyp verb command clean []
npm ERR! gyp verb clean removing "build" directory
npm ERR! gyp verb command configure []
npm ERR! gyp verb check python checking for Python executable "python2" in the PATH
npm ERR! gyp verb `which` failed Error: not found: python2
npm ERR! gyp verb `which` failed at getNotFoundError (C:\Users\admin\ngx-admin\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed at F (C:\Users\admin\ngx-admin\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed at E (C:\Users\admin\ngx-admin\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed at C:\Users\admin\ngx-admin\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed at C:\Users\admin\ngx-admin\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed at C:\Users\admin\ngx-admin\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:198:21)
npm ERR! gyp verb `which` failed python2 Error: not found: python2
npm ERR! gyp verb `which` failed at getNotFoundError (C:\Users\admin\ngx-admin\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed at F (C:\Users\admin\ngx-admin\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed at E (C:\Users\admin\ngx-admin\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed at C:\Users\admin\ngx-admin\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed at C:\Users\admin\ngx-admin\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed at C:\Users\admin\ngx-admin\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:198:21) {
npm ERR! gyp verb `which` failed code: 'ENOENT'
npm ERR! gyp verb `which` failed }
npm ERR! gyp verb check python checking for Python executable "python" in the PATH
npm ERR! gyp verb `which` failed Error: not found: python
npm ERR! gyp verb `which` failed at getNotFoundError (C:\Users\admin\ngx-admin\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed at F (C:\Users\admin\ngx-admin\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed at E (C:\Users\admin\ngx-admin\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed at C:\Users\admin\ngx-admin\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed at C:\Users\admin\ngx-admin\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed at C:\Users\admin\ngx-admin\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:198:21)
npm ERR! gyp verb `which` failed python Error: not found: python
npm ERR! gyp verb `which` failed at getNotFoundError (C:\Users\admin\ngx-admin\node_modules\which\which.js:13:12)
npm ERR! gyp verb `which` failed at F (C:\Users\admin\ngx-admin\node_modules\which\which.js:68:19)
npm ERR! gyp verb `which` failed at E (C:\Users\admin\ngx-admin\node_modules\which\which.js:80:29)
npm ERR! gyp verb `which` failed at C:\Users\admin\ngx-admin\node_modules\which\which.js:89:16
npm ERR! gyp verb `which` failed at C:\Users\admin\ngx-admin\node_modules\isexe\index.js:42:5
npm ERR! gyp verb `which` failed at C:\Users\admin\ngx-admin\node_modules\isexe\windows.js:36:5
npm ERR! gyp verb `which` failed at FSReqCallback.oncomplete (node:fs:198:21) {
npm ERR! gyp verb `which` failed code: 'ENOENT'
npm ERR! gyp verb `which` failed }
npm ERR! gyp verb could not find "python". checking python launcher
npm ERR! gyp verb could not find "python". guessing location
npm ERR! gyp verb ensuring that file exists: C:\Python27\python.exe
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
npm ERR! gyp ERR! stack at PythonFinder.failNoPython (C:\Users\admin\ngx-admin\node_modules\node-gyp\lib\configure.js:484:19)
npm ERR! gyp ERR! stack at PythonFinder.<anonymous> (C:\Users\admin\ngx-admin\node_modules\node-gyp\lib\configure.js:509:16)
npm ERR! gyp ERR! stack at C:\Users\admin\ngx-admin\node_modules\graceful-fs\polyfills.js:284:29
npm ERR! gyp ERR! stack at FSReqCallback.oncomplete (node:fs:198:21)
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\admin\\ngx-admin\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
npm ERR! gyp ERR! cwd C:\Users\admin\ngx-admin\node_modules\node-sass
npm ERR! gyp ERR! node -v v16.14.0
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\admin\AppData\Local\npm-cache\_logs\2022-03-21T06_59_03_785Z-debug-0.log
Just remove node-sass from package.json then run npm i -f he will work fine.
To fix node-sass issue, change "node-sass": "xx.xx.x" to "sass": "^1.49.0" in the package.json file in the root of the project. Then run npm i to install new packages.
Though node-sass may be not the only issue with ngx-admin to make it run nowadays.
try this: yarn add node-sass then yarn it works for me

npm install is raising this error "npm ERR! Failed at the node-sass#4.12.0 postinstall script."

I am to work on this SPFx web part # https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-enhanced-list-formatting . so i downloaded the files, then i tried to run npm install.. but i got this error:-
Your environment has been set up for using Node.js 14.17.0 (x64) and npm.
C:\Windows\System32>cd C:\react-enhanced-list-formatting
C:\react-enhanced-list-formatting>npm install
> node-sass#4.12.0 install C:\react-enhanced-list-formatting\node_modules\node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.12.0/win32-x64-83_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.12.0/win32-x64-83_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.12.0 postinstall C:\react-enhanced-list-formatting\node_modules\node-sass
> node scripts/build.js
Building: C:\Program Files\nodejs\node.exe C:\react-enhanced-list-formatting\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 'C:\\react-enhanced-list-formatting\\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#14.17.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:\react-enhanced-list-formatting\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (C:\react-enhanced-list-formatting\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (C:\react-enhanced-list-formatting\node_modules\which\which.js:80:29)
gyp verb `which` failed at C:\react-enhanced-list-formatting\node_modules\which\which.js:89:16
gyp verb `which` failed at C:\react-enhanced-list-formatting\node_modules\isexe\index.js:42:5
gyp verb `which` failed at C:\react-enhanced-list-formatting\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:192:21)
gyp verb `which` failed python2 Error: not found: python2
gyp verb `which` failed at getNotFoundError (C:\react-enhanced-list-formatting\node_modules\which\which.js:13:12)
gyp verb `which` failed at F (C:\react-enhanced-list-formatting\node_modules\which\which.js:68:19)
gyp verb `which` failed at E (C:\react-enhanced-list-formatting\node_modules\which\which.js:80:29)
gyp verb `which` failed at C:\react-enhanced-list-formatting\node_modules\which\which.js:89:16
gyp verb `which` failed at C:\react-enhanced-list-formatting\node_modules\isexe\index.js:42:5
gyp verb `which` failed at C:\react-enhanced-list-formatting\node_modules\isexe\windows.js:36:5
gyp verb `which` failed at FSReqCallback.oncomplete (fs.js:192: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:\Python39\python.EXE
gyp ERR! configure error
gyp ERR! stack Error: Command failed: C:\Python39\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:319:12)
gyp ERR! stack at ChildProcess.emit (events.js:376:20)
gyp ERR! stack at maybeClose (internal/child_process.js:1055:16)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
gyp ERR! System Windows_NT 10.0.19043
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\react-enhanced-list-formatting\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\react-enhanced-list-formatting\node_modules\node-sass
gyp ERR! node -v v14.17.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN #voitanos/jest-preset-spfx-react16#1.3.2 requires a peer of jest#^24.8.0 but none is installed. You must install peer dependencies yourself.
npm WARN ajv-keywords#3.4.1 requires a peer of ajv#^6.9.1 but none is installed. You must install peer dependencies yourself.
npm WARN gulp-stylelint#11.0.0 requires a peer of stylelint#^10.1.0 || ^11.0.0 || ^12.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN ts-jest#24.0.2 requires a peer of jest#>=24 <25 but none is installed. You must install peer dependencies yourself.
npm WARN uglifyjs-webpack-plugin#0.4.6 requires a peer of webpack#^1.9 || ^2 || ^2.1.0-beta || ^2.2.0-rc || ^3.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN react-enhanced-list-formatting#0.0.1 No repository field.
npm WARN react-enhanced-list-formatting#0.0.1 No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#1.2.11 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass#4.12.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass#4.12.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\mohan\AppData\Roaming\npm-cache\_logs\2021-11-12T18_25_56_343Z-debug.log
any advice ?

zurb foundation 6 manual setup - error Failed at the node-sass#3.13.1 postinstall script

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

Globally installed npm packages don't work

I am trying to install node-sass as a global package. But if I try to use it after npm install node-sass, I just get the error:
command not found: node-sass
I also tried uninstalling and installing node several times (via website and homebrew) but it didn't change anything. I also followed all instructions here: https://docs.npmjs.com/getting-started/fixing-npm-permissions. I am running out of ideas what could be fixing this issue. If I do sudo npm install I get this error message:
node-sass#4.6.0 install /Users/s.brauns/node_modules/node-sass
node scripts/install.js
Unable to save binary /Users/s.brauns/node_modules/node-sass/vendor/darwin-x64-59 : { Error: EACCES: permission denied, mkdir '/Users/s.brauns/node_modules/node-sass/vendor'
at Object.fs.mkdirSync (fs.js:905:18)
at sync (/Users/s.brauns/node_modules/mkdirp/index.js:71:13)
at Function.sync (/Users/s.brauns/node_modules/mkdirp/index.js:77:24)
at checkAndDownloadBinary (/Users/s.brauns/node_modules/node-sass/scripts/install.js:111:11)
at Object.<anonymous> (/Users/s.brauns/node_modules/node-sass/scripts/install.js:154:1)
at Module._compile (module.js:641:30)
at Object.Module._extensions..js (module.js:652:10)
at Module.load (module.js:560:32)
at tryModuleLoad (module.js:503:12)
at Function.Module._load (module.js:495:3)
errno: -13,
code: 'EACCES',
syscall: 'mkdir',
path: '/Users/s.brauns/node_modules/node-sass/vendor' }
node-sass#4.6.0 postinstall /Users/s.brauns/node_modules/node-sass
node scripts/build.js
Building: /usr/local/bin/node /Users/s.brauns/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 [ '/usr/local/bin/node',
gyp verb cli '/Users/s.brauns/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.1.0 | darwin | 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 (/Users/s.brauns/node_modules/which/which.js:13:12)
gyp verb `which` failed at F (/Users/s.brauns/node_modules/which/which.js:68:19)
gyp verb `which` failed at E (/Users/s.brauns/node_modules/which/which.js:80:29)
gyp verb `which` failed at /Users/s.brauns/node_modules/which/which.js:89:16
gyp verb `which` failed at /Users/s.brauns/node_modules/isexe/index.js:42:5
gyp verb `which` failed at /Users/s.brauns/node_modules/isexe/mode.js:8: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 (/Users/s.brauns/node_modules/which/which.js:13:12)
gyp verb `which` failed at F (/Users/s.brauns/node_modules/which/which.js:68:19)
gyp verb `which` failed at E (/Users/s.brauns/node_modules/which/which.js:80:29)
gyp verb `which` failed at /Users/s.brauns/node_modules/which/which.js:89:16
gyp verb `which` failed at /Users/s.brauns/node_modules/isexe/index.js:42:5
gyp verb `which` failed at /Users/s.brauns/node_modules/isexe/mode.js:8:5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:166:21)
gyp verb `which` failed stack: 'Error: not found: python2\n at getNotFoundError (/Users/s.brauns/node_modules/which/which.js:13:12)\n at F (/Users/s.brauns/node_modules/which/which.js:68:19)\n at E (/Users/s.brauns/node_modules/which/which.js:80:29)\n at /Users/s.brauns/node_modules/which/which.js:89:16\n at /Users/s.brauns/node_modules/isexe/index.js:42:5\n at /Users/s.brauns/node_modules/isexe/mode.js:8: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` succeeded python /usr/bin/python
gyp verb check python version `/usr/bin/python -c "import platform; print(platform.python_version());"` returned: "2.7.10\n"
gyp verb get node dir no --target version specified, falling back to host node version: 9.1.0
gyp verb command install [ '9.1.0' ]
gyp verb install input version string "9.1.0"
gyp verb install installing version: 9.1.0
gyp verb install --ensure was passed, so won't reinstall if already installed
gyp verb install version is already installed, need to check "installVersion"
gyp verb got "installVersion" 9
gyp verb needs "installVersion" 9
gyp verb install version is good
gyp verb get node dir target node version installed: 9.1.0
gyp verb build dir attempting to create "build" dir: /Users/s.brauns/node_modules/node-sass/build
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/Users/s.brauns/node_modules/node-sass/build'
gyp ERR! System Darwin 16.4.0
gyp ERR! command "/usr/local/bin/node" "/Users/s.brauns/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/s.brauns/node_modules/node-sass
gyp ERR! node -v v9.1.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN babel-loader#6.4.1 requires a peer of webpack#1 || 2 || ^2.1.0-beta || ^2.2.0-rc but none is installed. You must install peer dependencies yourself.
npm WARN extract-text-webpack-plugin#1.0.1 requires a peer of webpack#^1.9.11 but none is installed. You must install peer dependencies yourself.
npm WARN webpack-dev-server#1.16.5 requires a peer of webpack#>=1.3.0 <3 but none is installed. You must install peer dependencies yourself.
npm WARN s.brauns#1.0.0 No description
npm WARN s.brauns#1.0.0 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass#4.6.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass#4.6.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! /Users/s.brauns/.npm/_logs/2017-11-10T08_56_56_379Z-debug.log

Ionic 2 - Error while installing node_modules with npm install?

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

Resources