Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install it anymore - Is this deprecated ? #103

Open
GeorgeFlorian opened this issue May 18, 2021 · 4 comments
Open

Can't install it anymore - Is this deprecated ? #103

GeorgeFlorian opened this issue May 18, 2021 · 4 comments

Comments

@GeorgeFlorian
Copy link

GeorgeFlorian commented May 18, 2021

I can't install this anymore.
I am on Windows 10.

PS D:\Projects\VSCode Projects\proiect_final_link> npm install fs-ext
npm ERR! code 1
npm ERR! path D:\Projects\VSCode Projects\proiect_final_link\node_modules\fs-ext
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-gyp configure build
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64
npm ERR! gyp info find Python using Python version 3.9.5 found at "C:\Python39\python.exe"
npm ERR! gyp info find VS using VS2019 (16.9.31229.75) found at:
npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools"
npm ERR! gyp info find VS run with --verbose for detailed information
npm ERR! (node:6860) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.    
npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)
npm ERR! gyp info spawn C:\Python39\python.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'msvs',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   'D:\\Projects\\VSCode Projects\\proiect_final_link\\node_modules\\fs-ext\\build\\config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   'C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   'C:\\Users\\georg\\AppData\\Local\\node-gyp\\Cache\\16.1.0\\common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=C:\\Users\\georg\\AppData\\Local\\node-gyp\\Cache\\16.1.0',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=C:\\\\Users\\\\georg\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\16.1.0\\\\<(target_arch)\\\\node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=D:\\Projects\\VSCode Projects\\proiect_final_link\\node_modules\\fs-ext',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'D:\\Projects\\VSCode Projects\\proiect_final_link\\node_modules\\fs-ext\\build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp: C:\Users\georg\AppData\Local\node-gyp\Cache\16.1.0\common.gypi not found (cwd: D:\Projects\VSCode Projects\proiect_final_link\node_modules\fs-ext) while reading includes of binding.gyp while trying to load binding.gyp
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: `gyp` failed with exit code: 1
npm ERR! gyp ERR! stack     at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:351:16)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:365:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Windows_NT 10.0.19042
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "build"
npm ERR! gyp ERR! cwd D:\Projects\VSCode Projects\proiect_final_link\node_modules\fs-ext
npm ERR! gyp ERR! node -v v16.1.0
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok
@LoganDark
Copy link
Contributor

Builds just fine for me, looks like a broken Node/gyp installation to me.

@Filyus
Copy link

Filyus commented Jul 18, 2023

The install is really awful. It requires Python and a correct version of VS Buiild Tools to be already installed.

@LoganDark
Copy link
Contributor

The install is really awful. It requires Python and a correct version of VS Buiild Tools to be already installed.

I agree that Python is absolutely terrible and unacceptable, but is there any other way?

@Filyus
Copy link

Filyus commented Jul 18, 2023

The install is really awful. It requires Python and a correct version of VS Buiild Tools to be already installed.

I agree that Python is absolutely terrible and unacceptable, but is there any other way?

I found this thread:
rimmartin/saxon-node#1

and also this package:

@mapbox/node-pre-gyp makes it easy to publish and install Node.js C++ addons from binaries.

There an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants