profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/faiwiz/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

faiwiz/CodeIgniter 0

Open Source PHP Framework (originally from EllisLab)

faiwiz/drupal-project 0

:rocket: Composer template for Drupal projects. Quick installation via "composer create-project drupal-composer/drupal-project"

issue openednodejs/node-gyp

Can't install packages when upgraded the node from v8 to v14.15.4

<!-- Thank you for reporting an issue!

Remember, this issue tracker is for reporting issues ONLY with node-gyp.

If you have an issue installing a specific module, please file an issue on that module's issue tracker (npm issues modulename). Open issue here only if you are sure this is an issue with node-gyp, not with the module you are trying to build.

Fill out the form below. We probably won't investigate an issue that does not provide the basic information we require.

-->

  • Node Version: <!-- node -v and npm -v --> 14.15.4 and 6.14.8
  • Platform: <!-- uname -a (UNIX), or systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type" (Windows) --> Windows_NT 10.0.17134
  • Compiler: <!-- cc -v (UNIX) or msbuild /version & cl (Windows) -->
  • Module: <!-- what you tried to build/install --> install the package.json packages

<details><summary>Verbose output (from npm or node-gyp):</summary>

gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\xxx\\AppData\\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\xxx\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\xxx\myProject\node_modules\mmmagic
gyp ERR! node -v v14.15.4
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
.
.
.

npm verb stack Error: mmmagic@0.4.5 install: `node-gyp rebuild`
npm verb stack Exit status 1
npm verb stack     at EventEmitter.<anonymous> (C:\Users\xxx\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
npm verb stack     at EventEmitter.emit (events.js:315:20)
npm verb stack     at ChildProcess.<anonymous> (C:\Users\xxx\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
npm verb stack     at ChildProcess.emit (events.js:315:20)
npm verb stack     at maybeClose (internal/child_process.js:1048:16)
npm verb stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
npm verb pkgid mmmagic@0.4.5
npm verb cwd C:\Users\x199377\AppData\Local\Programs\Git\Ego\ego\ego-app
npm verb Windows_NT 10.0.17134
npm verb argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\xxx\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "i" "--verbose"
npm verb node v14.15.4
npm verb npm  v6.14.8
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! mmmagic@0.4.5 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mmmagic@0.4.5 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm verb exit [ 1, true ]
npm timing npm Completed in 83077ms

</details>

I followed the steps mentioned on the documentation and I installed python 3.8 and Visual C++ build tools.But I'm always getting that issue.

<!-- Any further details -->

created time in 2 months

issue openednodejs/node-gyp

Cannot install headers with proxy

  • Node Version: v14.15.5
  • NPM Version: 6.14.11
  • Platform: Windows 1909
  • Compiler: 15.9.27

I tried installing with simple command <details><summary>node-gyp install</summary>

gyp info it worked if it ends with ok
gyp info using node-gyp@7.1.2
gyp info using node@14.15.5 | win32 | x64
gyp http GET https://nodejs.org/download/release/v14.15.5/node-v14.15.5-headers.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! install error
gyp ERR! stack Error: self signed certificate in certificate chain
gyp ERR! stack     at TLSSocket.onConnectSecure (_tls_wrap.js:1497:34)
gyp ERR! stack     at TLSSocket.emit (events.js:315:20)
gyp ERR! stack     at TLSSocket._finishInit (_tls_wrap.js:932:8)
gyp ERR! stack     at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:706:12)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\User\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "install"
gyp ERR! cwd C:\Users\User\Documents\project
gyp ERR! node -v v14.15.5
gyp ERR! node-gyp -v v7.1.2
gyp ERR! not ok

</details>

Then i added proxy <details><summary>node-gyp install --proxy http://localhost:8888</summary>

gyp info it worked if it ends with ok
gyp info using node-gyp@7.1.2
gyp info using node@14.15.5 | win32 | x64
gyp http GET https://nodejs.org/download/release/v14.15.5/node-v14.15.5-headers.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! install error
gyp ERR! stack Error: self signed certificate in certificate chain
gyp ERR! stack     at TLSSocket.onConnectSecure (_tls_wrap.js:1497:34)
gyp ERR! stack     at TLSSocket.emit (events.js:315:20)
gyp ERR! stack     at TLSSocket._finishInit (_tls_wrap.js:932:8)
gyp ERR! stack     at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:706:12)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\User\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "install" "--proxy" "http://localhost:8888"
gyp ERR! cwd C:\Users\User\Documents\project
gyp ERR! node -v v14.15.5
gyp ERR! node-gyp -v v7.1.2
gyp ERR! not ok

</details>

Then i downloaded header and provided them via the flag

<details><summary>node-gyp install --tarball C:\Users\User\Downloads\node-v14.15.5-headers.tar.gz</summary>

gyp info it worked if it ends with ok
gyp info using node-gyp@7.1.2
gyp info using node@14.15.5 | win32 | x64
gyp http GET https://nodejs.org/download/release/v14.15.5/SHASUMS256.txt
gyp http GET https://nodejs.org/download/release/v14.15.5/win-x86/node.lib
gyp http GET https://nodejs.org/download/release/v14.15.5/win-arm64/node.lib
gyp http GET https://nodejs.org/download/release/v14.15.5/win-x64/node.lib
gyp WARN install got an error, rolling back install
gyp ERR! install error
gyp ERR! stack Error: self signed certificate in certificate chain
gyp ERR! stack     at TLSSocket.onConnectSecure (_tls_wrap.js:1497:34)
gyp ERR! stack     at TLSSocket.emit (events.js:315:20)
gyp ERR! stack     at TLSSocket._finishInit (_tls_wrap.js:932:8)
gyp ERR! stack     at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:706:12)
gyp ERR! System Windows_NT 10.0.18363
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\User\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "install" "--tarball" "C:\\Users\\User\\Downloads\\node-v14.15.5-headers.tar.gz"
gyp ERR! cwd C:\Users\User\Documents\project
gyp ERR! node -v v14.15.5
gyp ERR! node-gyp -v v7.1.2
gyp ERR! not ok

</details>

I tried to combine but result is the same. I don't understand why providing proxy does not work. This proxy is used in VS Code and other applications and they work fine with it. But here there is no difference between with and without proxy. Has anyone faced this issue?

created time in 2 months

PR opened nodejs/node-gyp

chore: auto release changelog

<!-- Thank you for your pull request. Please review the below requirements.

Contributor guide: https://github.com/nodejs/node/blob/master/CONTRIBUTING.md -->

Checklist

<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

  • [ ] npm install && npm test passes
  • [ ] tests are included <!-- Bug fixes and new features should include tests -->
  • [ ] documentation is changed or added
  • [ ] commit message follows commit guidelines
Description of change

<!-- Provide a description of the change -->

+16 -0

0 comment

1 changed file

pr created time in 2 months

issue commentnodejs/node-gyp

Discord bot configure shows Input Files Missing Error

Where should I put that file then?

I tried putting it in the same directory as the binding.gyp file, but it still threw the same error

WickedWizard3588

comment created time in 2 months

issue commentnodejs/node-gyp

Discord bot configure shows Input Files Missing Error

The image above shows that you have a binding.gyp file but not binding.cc file. The absence of binding.cc is what the error message is complaining about.

WickedWizard3588

comment created time in 2 months

issue commentnodejs/node-gyp

Discord bot configure shows Input Files Missing Error

Ok, I will attach a picture here of my whole bot folder, so that you can see the path. This is before running configure image

WickedWizard3588

comment created time in 2 months

issue commentnodejs/node-gyp

warning electron-rebuild > node-gyp > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

@cclauss Can you explain me why you labelled this issue as "wrong repo"?

 node-gyp > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
raphael10-collab

comment created time in 2 months

issue commentnodejs/node-gyp

Discord bot configure shows Input Files Missing Error

fatal error C1083: Cannot open source file: '..\src\binding.cc': No such file or directory [D:\Chintu\Discord\Xyborg\build\binding.vcxproj]

Please provide the full pathname to your src\binding.cc file.

WickedWizard3588

comment created time in 2 months

issue openednodejs/node-gyp

Configure Error

Hey, I installed node-gyp for my discord bot. I ran everything correctly until I reached node-gyp configure. I placed a binding.gyp file in the root of my project. <details> <summary>Binding.gyp File</summary> <br> <pre> <code> { "targets": [ { "target_name": "binding", "sources": [ "src/binding.cc" ] } ] } </code> </pre> </br> </details>

Then, I ran, node-gyp configure. When I ran this, it showed that everything was ok, except for one part. The last three lines threw an error, that the Input Files were missing. <details> <summary>Configure Output</summary> <br> <pre> <code> node-gyp configure gyp info it worked if it ends with ok gyp info using node-gyp@7.1.2 gyp info using node@15.7.0 | win32 | x64 gyp info find Python using Python version 3.9.1 found at "C:\Python39\python.exe" gyp info find VS using VS2017 (15.9.28307.1401) found at: gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools" gyp info find VS run with --verbose for detailed information gyp info spawn C:\Python39\python.exe gyp info spawn args [ gyp info spawn args 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\node-gyp\gyp\gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'msvs', gyp info spawn args '-I', gyp info spawn args 'D:\Chintu\Discord\Xyborg\build\config.gypi', gyp info spawn args '-I', gyp info spawn args 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\node-gyp\addon.gypi', gyp info spawn args '-I', gyp info spawn args 'C:\Users\Administrator\AppData\Local\node-gyp\Cache\15.7.0\include\node\common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=C:\Users\Administrator\AppData\Local\node-gyp\Cache\15.7.0', gyp info spawn args '-Dnode_gyp_dir=C:\Users\Administrator\AppData\Roaming\npm\node_modules\node-gyp', gyp info spawn args '-Dnode_lib_file=C:\\Users\\Administrator\\AppData\\Local\\node-gyp\\Cache\\15.7.0\\<(target_arch)\\node.lib', gyp info spawn args '-Dmodule_root_dir=D:\Chintu\Discord\Xyborg', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'D:\Chintu\Discord\Xyborg\build', gyp info spawn args '-Goutput_dir=.' gyp info spawn args ] Warning: Missing input files: D:\Chintu\Discord\Xyborg\build..\src\binding.cc gyp info ok </code> </pre> </br> </details>

I thought that this was some ignorable error because the last line showed that gyp info ok. I proceeded with the node-gyp build command <details> <summary>Build Output</summary> <br> <pre> <code> gyp info it worked if it ends with ok gyp info using node-gyp@7.1.2 gyp info using node@15.7.0 | win32 | x64 gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe gyp info spawn args [ gyp info spawn args 'build/binding.sln', gyp info spawn args '/clp:Verbosity=minimal', gyp info spawn args '/nologo', gyp info spawn args '/p:Configuration=Release;Platform=x64' gyp info spawn args ] Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch. binding.cc c1xx : fatal error C1083: Cannot open source file: '..\src\binding.cc': No such file or directory [D:\Chintu\Discord\Xyborg\build\binding.vcxproj] gyp ERR! build error gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Users\Administrator\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js:194:23) gyp ERR! stack at ChildProcess.emit (node:events:379:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12) gyp ERR! System Windows_NT 10.0.19042 gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\Administrator\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js" "build" gyp ERR! cwd D:\Chintu\Discord\Xyborg gyp ERR! node -v v15.7.0 gyp ERR! node-gyp -v v7.1.2 gyp ERR! not ok </code> </pre> </br> </details>

So, how do I fix that Input Files Missing Error, and finally use gyp, so that I can use sqlite3

Thanks for helping me :)

created time in 2 months

pull request commentnodejs/node-gyp

gyp: remove support for Python 2

@DeeDeeG would you be willing to create pull requests on https://github.com/nodejs/gyp-next for the shebang (#!/usr/bin/env python/usr/bin/env python3) and the lib/find-python.js changes?

cclauss

comment created time in 2 months

pull request commentnodejs/node-gyp

gyp: remove support for Python 2

If Python 2 support is gone, then I believe lib/find-python.js should be updated to reflect that.

cclauss

comment created time in 2 months

issue closednodejs/node-gyp

warning electron-rebuild > node-gyp > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

Installing electron-rebuild gives this warning :

warning electron-rebuild > node-gyp > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

O.S.: Ubuntu 18.04.4 Desktop
-node: v14.5.0

closed time in 2 months

raphael10-collab

pull request commentnodejs/node-gyp

gyp: remove support for Python 2

Ah, I just tested this and you're right @cclaus.

<details><summary>Details for anyone who is curious (click to expand):</summary>

Here's an example of what rpmbuild does to a #!/usr/bin/env python3 shebang on Fedora 33: mangling shebang in /[ ... ]/node-gyp/gyp/samples/samples from /usr/bin/env python3 to #!/usr/bin/python3

(That's an informational/logging line, not even an error or warning. I find Fedora's approach weird, coercing/"mangling" the shebangs to something more standardized. But it doesn't error out, so that's good. Some really core parts of Fedora are written for Python 3, such as the package manager dnf, so the chance of Fedora users having /usr/bin/python3 are nearly 100%.)

For reference, here is a link to the policy this is about. But env is okay.

https://fedoraproject.org/wiki/Changes/Make_ambiguous_python_shebangs_error

</details>

cclauss

comment created time in 2 months

pull request commentnodejs/node-gyp

gyp: remove support for Python 2

The messages above make it seem like Fedora will accept the env approach.

cclauss

comment created time in 2 months

pull request commentnodejs/node-gyp

gyp: remove support for Python 2

@cclauss You are completely right. env should not be dropped, I had missed that Fedora even enforced that. So we will find a separate workaround solution with the Fedora packaging.

Meanwhile for node-gyp, especially with this PR merged that drops python2 support, it would be appropriate to update the shebangs to python3 as recommended in the PEPs.

cclauss

comment created time in 2 months

issue openednodejs/node-gyp

warning electron-rebuild > node-gyp > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

Installing electron-rebuild gives this warning :

warning electron-rebuild > node-gyp > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142

O.S.: Ubuntu 18.04.4 Desktop
-node: v14.5.0

created time in 2 months

push eventnodejs/node-gyp

Christian Clauss

commit sha a78b584236e92a9469f72916c55ba83e9819ddea

gyp: remove support for Python 2 (#2300) PR-URL: https://github.com/nodejs/node-gyp/pull/2300 Reviewed-By: Jiawen Geng <technicalcute@gmail.com>

view details

push time in 2 months

PR merged nodejs/node-gyp

Reviewers
gyp: remove support for Python 2 Python semver-major

<!-- Thank you for your pull request. Please review the below requirements.

Contributor guide: https://github.com/nodejs/node/blob/master/CONTRIBUTING.md --> Ironic that #2300 is about the migration from 2 --> 3 ;-)

Roughly corresponds with nodejs/node#36691 and ~nodejs/gyp-next#88~

~Blocked by #2318~

Python 2 died one year ago so let's only support the currently supported versions of CPython: https://devguide.python.org/#status-of-python-branches

Removes windows-build-tools because its current release unfortunately still installs legacy Python. felixrieseberg/windows-build-tools#206

Checklist

<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->

  • [ ] npm install && npm test passes
  • [ ] tests are included <!-- Bug fixes and new features should include tests -->
  • [x] documentation is changed or added
  • [ ] commit message follows commit guidelines
Description of change

<!-- Provide a description of the change -->

+10 -17

10 comments

4 changed files

cclauss

pr closed time in 2 months

push eventnodejs/node-gyp

Michaël Zasso

commit sha 392b7760b45af45fa958c16a4a34b873a03f2b3a

lib: avoid changing process.config (#2322) PR-URL: https://github.com/nodejs/node-gyp/pull/2322 Refs: https://github.com/nodejs/node/pull/36902 Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Rod Vagg <rod@vagg.org>

view details

push time in 2 months

PR merged nodejs/node-gyp

lib: avoid changing process.config
Checklist
Description of change

It is deprecated and will emit a warning in Node.js 16.

Refs: https://github.com/nodejs/node/pull/36902

+1 -1

3 comments

1 changed file

targos

pr closed time in 2 months

pull request commentnodejs/node-gyp

lib: avoid changing process.config

@gengjiawen I don't suppose you want to help us get set up with the Actions suggested in #2286 so we can reduce this friction?

Actually I can help with it. I am home for Chinese spring festival, get more free time :)

targos

comment created time in 2 months

pull request commentnodejs/node-gyp

Remove support for Python 2

Brew-installed versions of Python 3 are not at /usr/bin/python3 so I would be supportive of #!/usr/bin/env python3 but not something different than that.

cclauss

comment created time in 2 months

pull request commentnodejs/node-gyp

Remove support for Python 2

Following up on what @mfonville said, Fedora has a really strict lint about Python shebangs when building rpm packages, such that #!/usr/bin/env python or #!/usr/bin/python are not valid. It has to be exactly #!/usr/bin/python2 or #!/usr/bin/python3. I'm not sure whether you folks would want to do exactly #!/usr/bin/python3 for all the gyp files.

If you folks do not want to update gyp's shebang lines, then for Fedora users, there are macros available in Fedora to auto-convert shebangs and satisfy the lint, or ways of disabling the lint.

cclauss

comment created time in 2 months

issue openednodejs/node-gyp

NSSpellChecker does not return my dictionaries from ~/Library/Spelling

  • Node Version: node 12.18.3, npm 6.14.6
  • Platform: MacOS

Hello guys, I'm not really sure where can I send my issue with macOS, so sorry if this is not the right place.

Node-gyp builds my native module which depends on native spell checkers. For some reason when I run build with node Javascript, it doesn't return my dictionaries from ~/Library/Spelling ( it returns only installed 'system languages' ) When I created a simple objective c app in Xcode, it shows me all languages include my dictionaries from folder ~/Library/Spelling

Simple code:

#import "spellchecker.h"

#import <Cocoa/Cocoa.h>
#import <dispatch/dispatch.h>

Spellchecker::Spellchecker() {
    NSLog(@"%@",[[NSSpellChecker sharedSpellChecker] availableLanguages]);
}

Spellchecker::~Spellchecker() {}

Please, any idea why my node-gyp build is different from native?

created time in 2 months

pull request commentnodejs/node-gyp

Remove support for Python 2

When dropping python2 support, could you please also update the shebang to python3? RPM builds for Atom hit this bug: https://github.com/atom/atom/issues/21937

We can implement a work-around, but best would be if the shebang gets updated upstream :-)

cclauss

comment created time in 2 months

issue commentnodejs/node-gyp

gyp ERR! stack Error: EACCES: permission denied, rmdir 'build'

I had to run the permission change recursively on the directory of the package I was trying to rebuild sudo chmod -R 777

MJOAN

comment created time in 2 months

issue commentnodejs/node-gyp

gyp ERR! stack Error: EACCES: permission denied, rmdir 'build'

Perhaps find or open an issue at https://github.com/ionic-team/cordova-res

MJOAN

comment created time in 2 months

issue commentnodejs/node-gyp

gyp ERR! stack Error: EACCES: permission denied, rmdir 'build'

This no longer works as of NPM 7 (packaged wit Node 15): https://github.com/npm/cli/pull/2196

MJOAN

comment created time in 2 months

pull request commentnodejs/node-gyp

Add support for Unicode characters in paths

@richardlau @cclauss may i request code review?

owl-from-hogvarts

comment created time in 2 months