Topic: MDB-Pro Gulp
rabi_kc pro asked 4 years ago
" npm install --save-dev gulp" not doing anything, after I enter the command, nothing happens.
I followed the instructions and installed node.js as well.
rabi_kc pro answered 4 years ago
I tried it today and this is what I got
$ npm install --save-dev gulp
node-sass@4.13.0 install D:\MyPhotoProject2020\MDB-Pro\node_modules\node-sass node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.13.0/win32-x64-83_binding.node Cannot download "https://github.com/sass/node-sass/releases/download/v4.13.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
core-js@2.6.10 postinstall D:\MyPhotoProject2020\MDB-Pro\node_modules\@babel\polyfill\node_modules\core-js node postinstall || echo "ignore"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
https://opencollective.com/core-js https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
node-sass@4.13.0 postinstall D:\MyPhotoProject2020\MDB-Pro\node_modules\node-sass node scripts/build.js
Building: C:\Program Files\nodejs\node.exe D:\MyPhotoProject2020\MDB-Pro\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 'D:\MyPhotoProject2020\MDB-Pro\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.8.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 (D:\MyPhotoProject2020\MDB-Pro\node_modules\which\which.js:13:12)
gyp verb which
failed at F (D:\MyPhotoProject2020\MDB-Pro\node_modules\which\which.js:68:19)
gyp verb which
failed at E (D:\MyPhotoProject2020\MDB-Pro\node_modules\which\which.js:80:29)
gyp verb which
failed at D:\MyPhotoProject2020\MDB-Pro\node_modules\which\which.js:89:16
gyp verb which
failed at D:\MyPhotoProject2020\MDB-Pro\node_modules\isexe\index.js:42:5
gyp verb which
failed at D:\MyPhotoProject2020\MDB-Pro\node_modules\isexe\windows.js:36:5
gyp verb which
failed at FSReqCallback.oncomplete (fs.js:176:21)
gyp verb which
failed python2 Error: not found: python2
gyp verb which
failed at getNotFoundError (D:\MyPhotoProject2020\MDB-Pro\node_modules\which\which.js:13:12)
gyp verb which
failed at F (D:\MyPhotoProject2020\MDB-Pro\node_modules\which\which.js:68:19)
gyp verb which
failed at E (D:\MyPhotoProject2020\MDB-Pro\node_modules\which\which.js:80:29)
gyp verb which
failed at D:\MyPhotoProject2020\MDB-Pro\node_modules\which\which.js:89:16
gyp verb which
failed at D:\MyPhotoProject2020\MDB-Pro\node_modules\isexe\index.js:42:5
gyp verb which
failed at D:\MyPhotoProject2020\MDB-Pro\node_modules\isexe\windows.js:36:5
gyp verb which
failed at FSReqCallback.oncomplete (fs.js:176: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 (D:\MyPhotoProject2020\MDB-Pro\node_modules\which\which.js:13:12)
gyp verb which
failed at F (D:\MyPhotoProject2020\MDB-Pro\node_modules\which\which.js:68:19)
gyp verb which
failed at E (D:\MyPhotoProject2020\MDB-Pro\node_modules\which\which.js:80:29)
gyp verb which
failed at D:\MyPhotoProject2020\MDB-Pro\node_modules\which\which.js:89:16
gyp verb which
failed at D:\MyPhotoProject2020\MDB-Pro\node_modules\isexe\index.js:42:5
gyp verb which
failed at D:\MyPhotoProject2020\MDB-Pro\node_modules\isexe\windows.js:36:5
gyp verb which
failed at FSReqCallback.oncomplete (fs.js:176:21)
gyp verb which
failed python Error: not found: python
gyp verb which
failed at getNotFoundError (D:\MyPhotoProject2020\MDB-Pro\node_modules\which\which.js:13:12)
gyp verb which
failed at F (D:\MyPhotoProject2020\MDB-Pro\node_modules\which\which.js:68:19)
gyp verb which
failed at E (D:\MyPhotoProject2020\MDB-Pro\node_modules\which\which.js:80:29)
gyp verb which
failed at D:\MyPhotoProject2020\MDB-Pro\node_modules\which\which.js:89:16
gyp verb which
failed at D:\MyPhotoProject2020\MDB-Pro\node_modules\isexe\index.js:42:5
gyp verb which
failed at D:\MyPhotoProject2020\MDB-Pro\node_modules\isexe\windows.js:36:5
gyp verb which
failed at FSReqCallback.oncomplete (fs.js:176:21) {
gyp verb which
failed code: 'ENOENT'
gyp verb which
failed }
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 (D:\MyPhotoProject2020\MDB-Pro\node_modules\node-gyp\lib\configure.js:484:19)
gyp ERR! stack at PythonFinder. (D:\MyPhotoProject2020\MDB-Pro\node_modules\node-gyp\lib\configure.js:509:16)
gyp ERR! stack at callback (D:\MyPhotoProject2020\MDB-Pro\node_modules\graceful-fs\polyfills.js:295:20)
gyp ERR! stack at FSReqCallback.oncomplete (fs.js:176:21)
gyp ERR! System Windows_NT 10.0.19042
gyp ERR! command "C:\Program Files\nodejs\node.exe" "D:\MyPhotoProject2020\MDB-Pro\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd D:\MyPhotoProject2020\MDB-Pro\node_modules\node-sass
gyp ERR! node -v v14.8.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN myproject@4.19.1 No description
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.13.0 postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.13.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\rabin\AppData\Roaming\npm-cache_logs\2020-08-23T02_50_14_069Z-debug.log
rabin@DESKTOP-G1BLJA5 MINGW64 /d/MyPhotoProject2020/MDB-Pro $ npm install --save-dev gulp-sass gulp-autoprefixer gulp-cssmin browser-sync gulp-concat gulp-minify gulp-rename gulp-imagemin npm WARN deprecated gulp-util@2.2.20: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5 npm WARN deprecated graceful-fs@2.0.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules\browser-sync\node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN myproject@4.19.1 No description
npm ERR! code EINVAL npm ERR! EINVAL: invalid argument, read
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\rabin\AppData\Roaming\npm-cache_logs\2020-08-23T03_12_44_128Z-debug.log
Grzegorz Bujański staff commented 4 years ago
Hi. The code you pasted is unformatted and it's hard to catch anything in it. Why do you think that executing npm install doesn't change anything? Where are you trying to do this? Are you doing a gulp tutorial or are you trying to do it on a gulp package we prepared?
rabi_kc pro commented 4 years ago
I followed the gulp instruction for MDB Pro, changed my laptop, now I am getting the following error:
$ gulp mdb-goC:\Users\rabin\MDB-PRO-PROJECTS\MDB-Gulp-Pro_4.19.1\node_modules\gulp-imagemin\index.js:44
...options ^^^SyntaxError: Unexpected token ... at createScript (vm.js:53:10)
at Object.runInThisContext (vm.js:95:10)
at Module._compile (module.js:543:28)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (C:\Users\rabin\MDB-PRO-PROJECTS\MDB-Gulp-Pro_4.19.1\gulpfile.js:6:18)
Am I doing something wrong?
Grzegorz Bujański staff commented 4 years ago
Then try another way. Run these commands one by one:
npm install
, npm run js-compile-plugins
, npm run js-build
, npm run js-minify
, npm run css-compile
, npm run css-minify
And if all commands go smoothly try running gulp using gulp mdb-go
command
rabi_kc pro commented 4 years ago
Still a no go, got the same error.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Pro
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: Laptop
- Browser: Chrome, Edge
- OS: Windows 10
- Provided sample code: No
- Provided link: No