Failed error not found python2

Below is the error that I get, when I try to generate a new project with JHipster: gyp verb check python checking for Python executable "python2" in the PATH gyp verb `which` failed Error: not fou...

Below is the error that I get, when I try to generate a new project with JHipster:

gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python C:Program FilesPython36python.EXE
gyp verb check python version `C:Program FilesPython36python.EXE -c "import platform; print(platform.python_version());"` returned: "3.6.4rn"
gyp verb could not find "C:Program FilesPython36python.EXE". checking python launcher
gyp verb could not find "C:Program FilesPython36python.EXE". guessing location
gyp verb ensuring that file exists: C:Python27python.exe
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "C:Program FilesPython36python.EXE", you can set the PYTHON env variable.

The rest is the stacktrace. The weird thing is I do have python installed and the environment variable is also set. My python version is «Python 3.6.4». Should I run it in Python 2? Is that the case?

asked Feb 24, 2018 at 19:08

leventunver's user avatar

Yes node-gyp requires Python 2.7, so you could try the answers to this question.

Alternatively, if you encounter this problem, it is probably due to node-sass and if you did not select Sass in JHipster options, you don’t need it but still you get it because it’s a transitive dependency from Angular, you can skip it by setting environment variables:

set SKIP_SASS_BINARY_DOWNLOAD_FOR_CI=true
set SKIP_NODE_SASS_TESTS=true

Another alternative is to use JHipster devbox.

answered Feb 24, 2018 at 20:10

Gaël Marziou's user avatar

Gaël MarziouGaël Marziou

15.8k4 gold badges38 silver badges48 bronze badges

There is another workaround to this error:

  1. Delete your node_modules folder.
  2. Run npm install --global windows-build-tools --save in your command prompt.
  3. Install node-sass using the command: npm install node-sass@4.12.0 --save (or the latest version)

This should solve the error and return you a gyp info ok message!

If you encounter Node Sass could not find a binding for your current environment, resolve it by running:

npm rebuild node-sass

answered Sep 11, 2019 at 18:04

Steffi Keran Rani J's user avatar

Just a note for anyone using React and facing the same error on Linux (Ubuntu):

Step 1: Install python 2.7

  • something similar to this
     sudo apt update
     sudo apt install python2-minimal
    

Step 2: Install make or just build-essential

  • something like:
    sudo apt-get install build-essential
    

Then you can proceed with your previous activity…

answered Jul 27, 2021 at 16:41

briancollins081's user avatar

I had to change to older node version:

PS C:> nvm list

    17.6.0
  * 16.13.2 (Currently using 64-bit executable)
    15.0.0
    10.19.0
PS C:> nvm use 10.19.0
Now using node v10.19.0 (64-bit)

Otherwise package node-sass failed to install. I did not investigate further why.

answered Mar 8, 2022 at 12:30

gtu's user avatar

gtugtu

57710 silver badges20 bronze badges

Before I write all, I’d like to say that before the update everything worked well; while updating node from version 7.2.1 to version 9.4.0 and npm from version 5.5.1 to version 5.6.0 in Windows 7 (64-bit) using the installer (https://nodejs.org/en/download/) and installing globally gulp-cli version 2.0.0, as far as npm install starts from the JointsWP folder I get the following error:

$ npm install
npm WARN deprecated babel-preset-es2015@6.24.1: รฐ  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

> uws@0.14.5 install C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesuws
> node-gyp rebuild > build_log.txt 2>&1 || exit 0


> node-sass@3.13.1 install C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesnode-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:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesnode-sass
> node scripts/build.js

Building: C:Program Filesnodejsnode.exe C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesnode-gypbinnode-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:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\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.4.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:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:13:12)
gyp verb `which` failed     at F (C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:68:19)
gyp verb `which` failed     at E (C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:80:29)
gyp verb `which` failed     at C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:89:16
gyp verb `which` failed     at C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesisexeindex.js:42:5
gyp verb `which` failed     at C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesisexewindows.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:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:13:12)
gyp verb `which` failed     at F (C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:68:19)
gyp verb `which` failed     at E (C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:80:29)
gyp verb `which` failed     at C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:89:16
gyp verb `which` failed     at C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesisexeindex.js:42:5
gyp verb `which` failed     at C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesisexewindows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:166:21)
gyp verb `which` failed   stack: 'Error: not found: python2n    at getNotFoundError (C:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\node_modules\which\which.js:13:12)n    at F (C:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\node_modules\which\which.js:68:19)n    at E (C:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\node_modules\which\which.js:80:29)n    at C:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\node_modules\which\which.js:89:16n    at C:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\node_modules\isexe\index.js:42:5n    at C:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\node_modules\isexe\windows.js:36:5n    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:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:13:12)
gyp verb `which` failed     at F (C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:68:19)
gyp verb `which` failed     at E (C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:80:29)
gyp verb `which` failed     at C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:89:16
gyp verb `which` failed     at C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesisexeindex.js:42:5
gyp verb `which` failed     at C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesisexewindows.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:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:13:12)
gyp verb `which` failed     at F (C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:68:19)
gyp verb `which` failed     at E (C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:80:29)
gyp verb `which` failed     at C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:89:16
gyp verb `which` failed     at C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesisexeindex.js:42:5
gyp verb `which` failed     at C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesisexewindows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:166:21)
gyp verb `which` failed   stack: 'Error: not found: pythonn    at getNotFoundError (C:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\node_modules\which\which.js:13:12)n    at F (C:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\node_modules\which\which.js:68:19)n    at E (C:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\node_modules\which\which.js:80:29)n    at C:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\node_modules\which\which.js:89:16n    at C:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\node_modules\isexe\index.js:42:5n    at C:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\node_modules\isexe\windows.js:36:5n    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:Python27python.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:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesnode-gyplibconfigure.js:483:19)
gyp ERR! stack     at PythonFinder. (C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesnode-gyplibconfigure.js:508:16)
gyp ERR! stack     at C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesgraceful-fspolyfills.js:284:29
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:166:21)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesnode-sass
gyp ERR! node -v v9.4.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modulesfsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

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:UsersBobAppDataRoamingnpm-cache_logs2018-01-13T10_31_53_892Z-debug.log

Then I proceed installing windows-build-tools and node-gyp this way:

npm --add-python-to-path='true' --debug install --global windows-build-tools
npm install --global node-gyp

I delete the node_modules folder and package-lock.json file and run npm install again but I get the following error:

0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli   'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli   'rm',
1 verbose cli   'gulp',
1 verbose cli   '--save-dev' ]
2 info using npm@5.6.0
3 info using node@v9.4.0
4 verbose npm-session f41010a2c6221fcb
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly install loadIdealTree
8 silly install cloneCurrentTreeToIdealTree
9 silly install loadShrinkwrap
10 silly uninstall loadAllDepsIntoIdealTree
11 silly install loadAllDepsIntoIdealTree
12 http fetch GET 304 https://registry.npmjs.org/gulp-sass 314ms (from cache)
13 silly pacote range manifest for gulp-sass@^2.0.1 fetched in 350ms
14 http fetch GET 304 https://registry.npmjs.org/node-sass 61ms (from cache)
15 silly pacote range manifest for node-sass@^3.4.2 fetched in 66ms
... too long ...
89 silly addBundled read tarball
90 silly cleanup remove extracted module
... too long ...
806 silly currentTree jointswp-sass@5.0.0 ... too long ...
807 silly idealTree jointswp-sass@5.0.0 ... too long ...
808 silly install generateActionsToTake
809 silly diffTrees action count 147 ... too long ...
955 silly diffTrees add node-sass@3.13.1
956 silly diffTrees add gulp-sass@2.3.2
957 silly decomposeActions action count 948 ... too long ...
1905 silly decomposeActions refresh-package-json gulp-sass@2.3.2
1906 silly install executeActions
1907 silly doSerial global-install 948
... too long ...
1999 silly pacote gulp-sass@https://registry.npmjs.org/gulp-sass/-/gulp-sass-2.3.2.tgz extracted to C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modules.staginggulp-sass-a933052a by content address 205ms
... too long ...
2008 silly pacote node-sass@https://registry.npmjs.org/node-sass/-/node-sass-3.13.1.tgz extracted to C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modules.stagingnode-sass-9bcaf5e7 by content address 482ms
... too long ...
2010 silly doReverseSerial unbuild 948
2011 silly doSerial remove 948
2012 silly doSerial move 948
2013 silly doSerial finalize 948
... too long ...
2159 silly finalize C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesnode-sass
2160 silly finalize C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesgulp-sass
2161 silly doParallel refresh-package-json 948
... too long ...
2262 silly doParallel preinstall 948
... too long ...
2323 silly preinstall node-sass@3.13.1
2324 info lifecycle node-sass@3.13.1~preinstall: node-sass@3.13.1
2325 silly preinstall gulp-sass@2.3.2
2326 info lifecycle gulp-sass@2.3.2~preinstall: gulp-sass@2.3.2
2327 silly doSerial build 948
... too long ...
2566 silly install node-sass@3.13.1
2567 info lifecycle node-sass@3.13.1~install: node-sass@3.13.1
2568 verbose lifecycle node-sass@3.13.1~install: unsafe-perm in lifecycle true
2569 verbose lifecycle node-sass@3.13.1~install: PATH: C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecyclenode-gyp-bin;C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesnode-sassnode_modules.bin;C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modules.bin;C:UsersBobbin;C:Program FilesGitusrlocalbin;C:Program FilesGitmingw64bin;C:Program FilesGitusrbin;C:Program Files (x86)Common FilesIntelShared Librariesredistintel64compiler;C:ProgramDataOracleJavajavapath;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:Program Files (x86)GNUGnuPGpub;C:Program FilesGitcmd;C:Program Files (x86)Bracketscommand;C:Program Filesnodejs;C:UsersBobAppDataRoamingnpm;C:Program FilesGitusrbinvendor_perl;C:Program FilesGitusrbincore_perl
2570 verbose lifecycle node-sass@3.13.1~install: CWD: C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesnode-sass
2571 silly lifecycle node-sass@3.13.1~install: Args: [ '/d /s /c', 'node scripts/install.js' ]
2572 silly lifecycle node-sass@3.13.1~install: Returned: code: 0  signal: null
2573 silly install gulp-sass@2.3.2
2574 info lifecycle gulp-sass@2.3.2~install: gulp-sass@2.3.2
2575 silly doSerial postinstall 948
... too long ...
2636 silly postinstall node-sass@3.13.1
2637 info lifecycle node-sass@3.13.1~postinstall: node-sass@3.13.1
2638 verbose lifecycle node-sass@3.13.1~postinstall: unsafe-perm in lifecycle true
2639 verbose lifecycle node-sass@3.13.1~postinstall: PATH: C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecyclenode-gyp-bin;C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesnode-sassnode_modules.bin;C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modules.bin;C:UsersBobbin;C:Program FilesGitusrlocalbin;C:Program FilesGitmingw64bin;C:Program FilesGitusrbin;C:Program Files (x86)Common FilesIntelShared Librariesredistintel64compiler;C:ProgramDataOracleJavajavapath;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:Program Files (x86)GNUGnuPGpub;C:Program FilesGitcmd;C:Program Files (x86)Bracketscommand;C:Program Filesnodejs;C:UsersBobAppDataRoamingnpm;C:Program FilesGitusrbinvendor_perl;C:Program FilesGitusrbincore_perl
2640 verbose lifecycle node-sass@3.13.1~postinstall: CWD: C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesnode-sass
2641 silly lifecycle node-sass@3.13.1~postinstall: Args: [ '/d /s /c', 'node scripts/build.js' ]
2642 silly lifecycle node-sass@3.13.1~postinstall: Returned: code: 1  signal: null
2643 info lifecycle node-sass@3.13.1~postinstall: Failed to exec postinstall script
2644 verbose unlock done using C:UsersBobAppDataRoamingnpm-cache_locksstaging-63ae421f88b49207.lock for C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modules.staging
2645 silly saveTree jointswp-sass@5.0.0 ... too long ...
2646 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modulesfsevents):
2647 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
2648 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    darwin
2648 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
2648 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   win32
2648 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
2649 verbose stack Error: node-sass@3.13.1 postinstall: `node scripts/build.js`
2649 verbose stack Exit status 1
2649 verbose stack     at EventEmitter. (C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecycleindex.js:285:16)
2649 verbose stack     at EventEmitter.emit (events.js:160:13)
2649 verbose stack     at ChildProcess. (C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecyclelibspawn.js:55:14)
2649 verbose stack     at ChildProcess.emit (events.js:160:13)
2649 verbose stack     at maybeClose (internal/child_process.js:943:16)
2649 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
2650 verbose pkgid node-sass@3.13.1
2651 verbose cwd C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWP
2652 verbose Windows_NT 6.1.7601
2653 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "rm" "gulp" "--save-dev"
2654 verbose node v9.4.0
2655 verbose npm  v5.6.0
2656 error code ELIFECYCLE
2657 error errno 1
2658 error node-sass@3.13.1 postinstall: `node scripts/build.js`
2658 error Exit status 1
2659 error Failed at the node-sass@3.13.1 postinstall script.
2659 error This is probably not a problem with npm. There is likely additional logging output above.
2660 verbose exit [ 1, true ]

So I found out that the gulp-sass: ^2.0.1 installation installs node-sass@3.13.1 as well, but I’m frightened that node-sass@3.13.1 is not supported by node 8 and further versions. So I tried to indicate gulp-sass: ^3.0.0 in the package.json file and run npm install again as follows:

$ npm install
npm WARN deprecated babel-preset-es2015@6.24.1: ð  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

> uws@0.14.5 install C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesuws
> node-gyp rebuild > build_log.txt 2>&1 || exit 0


> node-sass@4.7.2 install C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesnode-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.7.2/win32-x64-59_binding.node
Download complete
Binary saved to C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesnode-sassvendorwin32-x64-59binding.node
Caching binary to C:UsersBobAppDataRoamingnpm-cachenode-sass4.7.2win32-x64-59_binding.node

> node-sass@4.7.2 postinstall C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesnode-sass
> node scripts/build.js

Binary found at C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesnode-sassvendorwin32-x64-59binding.node
Testing binary
Binary is fine

> gifsicle@3.0.4 postinstall C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesgifsicle
> node lib/install.js

  â gifsicle pre-build test passed successfully

> jpegtran-bin@3.2.0 postinstall C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesjpegtran-bin
> node lib/install.js

  â jpegtran pre-build test passed successfully

> optipng-bin@3.1.4 postinstall C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesoptipng-bin
> node lib/install.js

  â optipng pre-build test passed successfully
npm WARN rollback Rolling back node-pre-gyp@0.6.39 failed (this is probably harmless): EPERM: operation not permitted, rmdir 'C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesfseventsnode_modules'

> jointswp-sass@5.0.0 postinstall C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWP
> npm run build


> jointswp-sass@5.0.0 build C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWP
> gulp

[17:08:47] Using gulpfile ~DropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPgulpfile.js
[17:08:47] Starting 'default'...
[17:08:47] Starting 'styles'...
[17:08:47] Starting 'scripts'...
[17:08:47] Starting 'images'...
[17:08:53] Finished 'styles' after 6.39 s
[17:08:53] gulp-imagemin: Minified 0 images
[17:08:53] Finished 'images' after 6.55 s
[17:08:58] Finished 'scripts' after 11 s
[17:08:58] Finished 'default' after 11 s
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modulesfsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

added 1203 packages in 171.173s

Now everything seems ok

Scenario: after upgrading the node environment, an error is reported when the project version number does not match. After deciding to reinitialize, an error is reported again

Building: G:nodejsnode.exe F:testnode_modulesnode-gypbinnode-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   'G:\nodejs\node.exe',
gyp verb cli   'F:\test\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 [email protected]
gyp info using [email protected] | 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 (F:testnode_moduleswhichwhich.js:13:12)
gyp verb `which` failed     at F (F:testnode_moduleswhichwhich.js:68:19)
gyp verb `which` failed     at E (F:testnode_moduleswhichwhich.js:80:29)
gyp verb `which` failed     at F:testnode_moduleswhichwhich.js:89:16
gyp verb `which` failed     at F:testnode_modulesisexeindex.js:42:5
gyp verb `which` failed     at F:testnode_modulesisexewindows.js:36:5
gyp verb `which` failed     at FSReqCallback.oncomplete (fs.js:158:21)
gyp verb `which` failed  python2 Error: not found: python2
gyp verb `which` failed     at getNotFoundError (F:testnode_moduleswhichwhich.js:13:12)
gyp verb `which` failed     at F (F:testnode_moduleswhichwhich.js:68:19)
gyp verb `which` failed     at E (F:testnode_moduleswhichwhich.js:80:29)
gyp verb `which` failed     at F:testnode_moduleswhichwhich.js:89:16
gyp verb `which` failed     at F:testnode_modulesisexeindex.js:42:5
gyp verb `which` failed     at F:testnode_modulesisexewindows.js:36:5
gyp verb `which` failed     at FSReqCallback.oncomplete (fs.js:158:21) {
gyp verb `which` failed   stack: 'Error: not found: python2n' +
gyp verb `which` failed     '    at getNotFoundError (F:\test\node_modules\which\which.js:13:12)n' +
gyp verb `which` failed     '    at F (F:\test\node_modules\which\which.js:68:19)n' +
gyp verb `which` failed     '    at E (F:\test\node_modules\which\which.js:80:29)n' +
gyp verb `which` failed     '    at F:\test\node_modules\which\which.js:89:16n' +
gyp verb `which` failed     '    at F:\test\node_modules\isexe\index.js:42:5n' +
gyp verb `which` failed     '    at F:\test\node_modules\isexe\windows.js:36:5n' +
gyp verb `which` failed     '    at FSReqCallback.oncomplete (fs.js:158: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 G:PythonPython37-32python.EXE
gyp ERR! configure error
gyp ERR! stack Error: Command failed: G:PythonPython37-32python.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:295:12)
gyp ERR! stack     at ChildProcess.emit (events.js:210:5)
gyp ERR! stack     at maybeClose (internal/child_process.js:1021:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
gyp ERR! System Windows_NT 10.0.18362
gyp ERR! command "G:\nodejs\node.exe" "F:\test\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsas
s_library="
gyp ERR! cwd F:testnode_modulesnode-sass
gyp ERR! node -v v12.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN [email protected] requires a peer of [email protected]^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modulesfsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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:UsersAdministratorAppDataRoamingnpm-cache_logs2019-11-18T07_33_10_767Z-debug.log

Process finished with exit code 1

The solution for online search is:

npm install --global windows-build-tools --save

But it got stuck when installing windows build tools, so the solution is as follows

1, run npm install -g windows-build-tools
2, in the %temp% folder, find the latest file with a filename similar to dd_installer_20210421124746.log
3, check this file, make sure the log output Closing the installer with exit code 0
4, make sure you have vscode installed
PS: In fact, you can skip steps 2-4, because your python environment has already been installed, and the repeated steps of the installer have already been executed.
5, create a file named dd_client_.log in the %temp% directory
6, edit the file created in 5, add a line Closing installer. return code: 3010. and save it.
Note: Paste %temp% directly in Explorer to open your Windows temp directory.

Finally, NPM install is installed successfully

Read More:

When starting the vueJs project, use npm install to report the following errors:

npm WARN prefer global node-gyp@3.6.0 should be installed with -g

> node-sass@4.5.2 install E:workspace_vscodewwnode_modulesnode-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.5                                                 .2/win32-x64-48_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.5.2/win3                                                 2-x64-48_binding.node":

connect ETIMEDOUT 54.231.72.83:443

Timed out whilst downloading the prebuilt binary

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.5.2 postinstall E:workspace_vscodewwnode_modulesnode-sass
> node scripts/build.js

Building: D:nodejsnode.exe E:workspace_vscodewwnode_modulesnode-gypbinnode-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_l                                                 dflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ 'D:\nodejs\node.exe',
gyp verb cli   'E:\workspace_vscode\ww\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.0
gyp info using node@6.9.5 | 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:workspace_vscodeww node_moduleswhichwhich.js:13:12)
gyp verb `which` failed     at F (E:workspace_vscodewwnode_moduleswhichwhich.js:68:19)
gyp verb `which` failed     at E (E:workspace_vscodewwnode_moduleswhichwhich.js:80:29)
gyp verb `which` failed     at E:workspace_vscodewwnode_moduleswhichwhich.js:89:16
gyp verb `which` failed     at E:workspace_vscodewwnode_modulesisexeindex.js:42:5
gyp verb `which` failed     at E:workspace_vscodewwnode_modulesisexewindows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:123:15)
gyp verb `which` failed  python2 { Error: not found: python2
gyp verb `which` failed     at getNotFoundError (E:workspace_vscodewwnode_moduleswhichwhich.js:13:12)
gyp verb `which` failed     at F (E:workspace_vscodewwnode_moduleswhichwhich.js:68:19)
gyp verb `which` failed     at E (E:workspace_vscodewwnode_moduleswhichwhich.js:80:29)
gyp verb `which` failed     at E:workspace_vscodewwnode_moduleswhichwhich.js:89:16
gyp verb `which` failed     at E:workspace_vscodewwnode_modulesisexeindex.js:42:5
gyp verb `which` failed     at E:workspace_vscodewwnode_modulesisexewindows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:123:15) code: 'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` succeeded python D:Pythonpython.EXE
gyp verb check python version `D:Pythonpython.EXE -c "import platform; print(platform.python_version());"` returned: "3.6.1rn"
gyp verb could not find "D:Pythonpython.EXE". checking python launcher
gyp verb could not find "D:Pythonpython.EXE". guessing location
gyp verb ensuring that file exists: C:Python27python.exe
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "D:Pythonpython.EXE", you can set the PYTHON env variable.
gyp ERR! stack     at Object.failNoPython (E:workspace_vscodewwnode_modulesnode-gyplibconfigure.js:482:19)
gyp ERR! stack     at Object.<anonymous> (E:workspace_vscodewwnode_modulesnode-gyplibconfigure.js:508:16)
gyp ERR! stack     at E:workspace_vscodewwnode_modulesgraceful-fspolyfills.js:284:29
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:123:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "D:\nodejs\node.exe" "E:\workspace_vscode\ww\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--l                                                 ibsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd E:workspace_vscodewwnode_modulesnode-sass
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.6.0
gyp ERR! not ok
Build failed with error code: 1

After node scripts/install.js, I found this sentence

Cannot download «https://github.com/sass/node-sass/releases/download/v4.5.3/win32-x64-51_binding.node»:

Download online, if the wrong version is the same as mine, you can use the files I downloaded. Click to download

After downloading, register it as a global environment variable in two ways:

First: Right-click my computer directly — «Attributes» — — «Advanced System Settings» — — «Environmental Variables» — — Add

The second is: set XXX = file path — «set SASS_BINARY_PATH = F: ww tools node-sass win32-x64-46_binding.

Check if the environment is appropriate: echo%SASS_BINARY_PATH%

If you print out the file address you have configured, it will be ok ay.

Finally, try installing: NPM i-g node-sass

npm install on windows 7 python2 not found error and node-sass@3.13.1 error #317

Before I write all, I’d like to say that before the update everything worked well; while updating node from version 7.2.1 to version 9.4.0 and npm from version 5.5.1 to version 5.6.0 in Windows 7 (64-bit) using the installer (https://nodejs.org/en/download/) and installing globally gulp-cli version 2.0.0, as far as npm install starts from the JointsWP folder I get the following error:

$ npm install
npm WARN deprecated babel-preset-es2015@6.24.1: รฐ  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated — replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

> uws@0.14.5 install C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesuws
> node-gyp rebuild > build_log.txt 2>&1 || exit 0

> node-sass@3.13.1 install C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesnode-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:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesnode-sass
> node scripts/build.js

Building: C:Program Filesnodejsnode.exe C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesnode-gypbinnode-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:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\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.4.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:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:13:12)
gyp verb `which` failed     at F (C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:68:19)
gyp verb `which` failed     at E (C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:80:29)
gyp verb `which` failed     at C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:89:16
gyp verb `which` failed     at C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesisexeindex.js:42:5
gyp verb `which` failed     at C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesisexewindows.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:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:13:12)
gyp verb `which` failed     at F (C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:68:19)
gyp verb `which` failed     at E (C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:80:29)
gyp verb `which` failed     at C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:89:16
gyp verb `which` failed     at C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesisexeindex.js:42:5
gyp verb `which` failed     at C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesisexewindows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:166:21)
gyp verb `which` failed   stack: ‘Error: not found: python2n    at getNotFoundError (C:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\node_modules\which\which.js:13:12)n    at F (C:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\node_modules\which\which.js:68:19)n    at E (C:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\node_modules\which\which.js:80:29)n    at C:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\node_modules\which\which.js:89:16n    at C:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\node_modules\isexe\index.js:42:5n    at C:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\node_modules\isexe\windows.js:36:5n    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:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:13:12)
gyp verb `which` failed     at F (C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:68:19)
gyp verb `which` failed     at E (C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:80:29)
gyp verb `which` failed     at C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:89:16
gyp verb `which` failed     at C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesisexeindex.js:42:5
gyp verb `which` failed     at C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesisexewindows.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:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:13:12)
gyp verb `which` failed     at F (C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:68:19)
gyp verb `which` failed     at E (C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:80:29)
gyp verb `which` failed     at C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_moduleswhichwhich.js:89:16
gyp verb `which` failed     at C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesisexeindex.js:42:5
gyp verb `which` failed     at C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesisexewindows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:166:21)
gyp verb `which` failed   stack: ‘Error: not found: pythonn    at getNotFoundError (C:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\node_modules\which\which.js:13:12)n    at F (C:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\node_modules\which\which.js:68:19)n    at E (C:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\node_modules\which\which.js:80:29)n    at C:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\node_modules\which\which.js:89:16n    at C:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\node_modules\isexe\index.js:42:5n    at C:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\node_modules\isexe\windows.js:36:5n    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:Python27python.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:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesnode-gyplibconfigure.js:483:19)
gyp ERR! stack     at PythonFinder. (C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesnode-gyplibconfigure.js:508:16)
gyp ERR! stack     at C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesgraceful-fspolyfills.js:284:29
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:166:21)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command «C:\Program Files\nodejs\node.exe» «C:\Users\Bob\Dropbox\Development\vhosts\mongoose-project\vanilla\themes\JointsWP\node_modules\node-gyp\bin\node-gyp.js» «rebuild» «—verbose» «—libsass_ext=» «—libsass_cflags=» «—libsass_ldflags=» «—libsass_library=»
gyp ERR! cwd C:UsersBobDropboxDevelopmentvhostsmongoose-projectvanillathemesJointsWPnode_modulesnode-sass
gyp ERR! node -v v9.4.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modulesfsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {«os»:»darwin»,»arch»:»any»} (current: {«os»:»win32″,»arch»:»x64″})

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:UsersBobAppDataRoamingnpm-cache_logs2018-01-13T10_31_53_892Z-debug.log

Links

  • Solution

Понравилась статья? Поделить с друзьями:
  • Failed error during websocket handshake unexpected response code 502
  • Failed error during websocket handshake unexpected response code 500
  • Failed error during websocket handshake unexpected response code 404
  • Failed error during websocket handshake unexpected response code 302
  • Failed error during websocket handshake unexpected response code 301