node-fs-ext icon indicating copy to clipboard operation
node-fs-ext copied to clipboard

Can't install it anymore - Is this deprecated ?

Open GeorgeFlorian opened this issue 3 years ago • 4 comments

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

GeorgeFlorian avatar May 18 '21 15:05 GeorgeFlorian

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

LoganDark avatar Aug 18 '21 16:08 LoganDark

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

Filyus avatar Jul 18 '23 08:07 Filyus

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?

LoganDark avatar Jul 18 '23 08:07 LoganDark

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: https://github.com/rimmartin/saxon-node/issues/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.

Filyus avatar Jul 18 '23 08:07 Filyus