alex8088 / clipboard-files Goto Github PK
View Code? Open in Web Editor NEWA nodejs addon, read or write file paths for clipboard, supports win32 and mac osx.
License: MIT License
A nodejs addon, read or write file paths for clipboard, supports win32 and mac osx.
License: MIT License
[1/11] ⢀ clipboard-files
[-/11] ⢀ waiting...
[6/11] ⢀ node-sass
[10/11] ⢀ spectron
error D:\文档\项目\Fincy\fincy-desktop\node_modules\postinstall-postinstall: Command
failed.ll
Exit code: 1
Command: node ./run.js
Arguments:
gyp ERR! cwd D:\文档\项目\Fincy\fincy-desktop\node_modules\clipboard-files
gyp ERR! node -v v14.5.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=D:\文档\项目\Fincy\fincy-desktop\node_modules\clipboard-files\lib\binding\electron-v10.1-win32-x64\binding.node --module_name=binding --module_path=D:\文档\项目\Fincy\fincy-desktop\node_modules\clipboard-files\lib\binding\electron-v10.1-win32-x64 --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=electron-v10.1 --dist-url=https://atom.io/download/electron' (1)
node-pre-gyp ERR! stack at ChildProcess. (D:\文档\项目\Fincy\fincy-desktop\node_modules\clipboard-files\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:314:20)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1051:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
node-pre-gyp ERR! System Windows_NT 10.0.18363
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "D:\文档\项目\Fincy\fincy-desktop\node_modules\clipboard-files\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd D:\文档\项目\Fincy\fincy-desktop\node_modules\clipboard-files
node-pre-gyp ERR! node -v v14.5.0
node-pre-gyp ERR! node-pre-gyp -v v0.12.0
node-pre-gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install 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\Zhi\AppData\Roaming\npm-cache_logs\2020-09-23T11_27_38_190Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] cf-rebuild: npm rebuild clipboard-files --build-from-source --runtime=electron --target=10.1.2 --dist-url=https://atom.io/download/electron
npm ERR! Exit status 1
你好,我在MAC下编译的时候提示404
地址:https://github.com/alex8088/clipboard-files/releases/download/v0.0.9/node-v57-darwin-x64.tar.gz
能帮忙编译一个版本吗。
谢谢了
您好,
m1 mac os 12.4 下装不了
node v16.14.0
python 3.10.4
node-gyp 9.0.0
试了试
npm i clipboard-files --build-from-source --runtime=electron --target=10.0.0 --target_arch=ia32 --dist-url=https://atom.io/download/electron
npm ERR! path /Users/nicenice/dev/model-editor-ts/node_modules/clipboard-files
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
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] | darwin | arm64
npm ERR! gyp info find Python using Python version 3.10.4 found at "/Library/Frameworks/Python.framework/Versions/3.10/bin/python3"
npm ERR! gyp info spawn /Library/Frameworks/Python.framework/Versions/3.10/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args '/Users/nicenice/.nvm/versions/node/v16.14.0/lib/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 'make',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/nicenice/dev/model-editor-ts/node_modules/clipboard-files/build/config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/nicenice/.nvm/versions/node/v16.14.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args '/Users/nicenice/Library/Caches/node-gyp/10.0.0/include/node/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=/Users/nicenice/Library/Caches/node-gyp/10.0.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=/Users/nicenice/.nvm/versions/node/v16.14.0/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/nicenice/Library/Caches/node-gyp/10.0.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/nicenice/dev/model-editor-ts/node_modules/clipboard-files',
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 'build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp: name 'openssl_fips' is not defined while evaluating condition 'openssl_fips != ""' in 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 (/Users/nicenice/.nvm/versions/node/v16.14.0/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:261:16)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:520:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Darwin 21.5.0
npm ERR! gyp ERR! command "/Users/nicenice/.nvm/versions/node/v16.14.0/bin/node" "/Users/nicenice/.nvm/versions/node/v16.14.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /Users/nicenice/dev/model-editor-ts/node_modules/clipboard-files
npm ERR! gyp ERR! node -v v16.14.0
npm ERR! gyp ERR! node-gyp -v v9.0.0
npm ERR! gyp ERR! not ok
试了试
npm i clipboard-files --build-from-source --runtime=electron --target=16.14.0 --target_arch=arm64 --dist-url=https://atom.io/download/electron
也不行
npm ERR! gyp info spawn args ]
npm ERR! gyp: Undefined variable module_name in binding.gyp while trying to load binding.gyp
npm ERR! gyp ERR! configure error
node:v16.14.0
"electron": "^13.0.0",
python :Python 3.8.3
npm i clipboard-files --build-from-source --runtime=electron --target=13.0.0 --target_arch=ia32 --dist-url=https://atom.io/download/electron
npm ERR! code 1
npm ERR! path E:\web\model-editor-ts\node_modules\clipboard-files
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuild
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.8.3 found at "C:\Python38\python.exe"
npm ERR! gyp info find VS using VS2017 (15.9.28307.1177) found at:
npm ERR! gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools"
npm ERR! gyp info find VS run with --verbose for detailed information
npm ERR! gyp info spawn C:\Python38\python.exe
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args 'C:\\Users\\h2o\\AppData\\Roaming\\nvm\\v16.14.0\\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 'E:\\web\\model-editor-ts\\node_modules\\clipboard-files\\build\\config.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\\Users\\h2o\\AppData\\Roaming\\nvm\\v16.14.0\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
npm ERR! gyp info spawn args '-I',
npm ERR! gyp info spawn args 'C:\\Users\\h2o\\AppData\\Local\\node-gyp\\Cache\\13.0.0\\include\\node\\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\\h2o\\AppData\\Local\\node-gyp\\Cache\\13.0.0',
npm ERR! gyp info spawn args '-Dnode_gyp_dir=C:\\Users\\h2o\\AppData\\Roaming\\nvm\\v16.14.0\\node_modules\\npm\\node_modules\\node-gyp',
npm ERR! gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\h2o\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\13.0.0\\\\<(target_arch)\\\\node.lib',
npm ERR! gyp info spawn args '-Dmodule_root_dir=E:\\web\\model-editor-ts\\node_modules\\clipboard-files',
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 'E:\\web\\model-editor-ts\\node_modules\\clipboard-files\\build',
npm ERR! gyp info spawn args '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp: Undefined variable module_name in 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:\Users\h2o\AppData\Roaming\nvm\v16.14.0\node_modules\npm\node_modules\node-gyp\lib\configure.js:259:16)
npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:520:28)
npm ERR! gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Windows_NT 10.0.19043
npm ERR! gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\h2o\\AppData\\Roaming\\nvm\\v16.14.0\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd E:\web\model-editor-ts\node_modules\clipboard-files
npm ERR! gyp ERR! node -v v16.14.0
npm ERR! gyp ERR! node-gyp -v v8.4.1
npm ERR! gyp ERR! not ok
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\h2o\AppData\Local\npm-cache\_logs\2022-05-29T02_33_19_398Z-debug-0.log
非常棒的扩展了,要是有剪切板写入就更加完美了
大哥加油
我的目录用的是零宽字符8203, 读出来的是问号
你好,我这边本地运行都是正常的,打包后,打开就报这个错误。 @alex8088
linux is support?
node 版本 v14.18.1
npm 版本 6.14.15
执行的命令
npm i clipboard-files --build-from-source --runtime=electron --target=19.0.4 --target_arch=x64 --dist-url=https://atom.io/download/electron
错误提示
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: 403 response downloading https://atom.io/download/electron/v19.0.4/node-v19.0.4-headers.tar.gz
gyp ERR! stack at Request.<anonymous> (D:\nodejs\node_modules\npm\node_modules\node-gyp\lib\install.js:188:14)
gyp ERR! stack at Request.emit (events.js:412:35)
gyp ERR! stack at Request.onRequestResponse (D:\nodejs\node_modules\npm\node_modules\request\request.js:1066:10)
gyp ERR! stack at ClientRequest.emit (events.js:400:28)
gyp ERR! stack at HTTPParser.parserOnIncomingClient (_http_client.js:647:27)
gyp ERR! stack at HTTPParser.parserOnHeadersComplete (_http_common.js:127:17)
gyp ERR! stack at TLSSocket.socketOnData (_http_client.js:515:22)
gyp ERR! stack at TLSSocket.emit (events.js:400:28)
gyp ERR! stack at addChunk (internal/streams/readable.js:293:12)
gyp ERR! stack at readableAddChunk (internal/streams/readable.js:267:9)
gyp ERR! System Windows_NT 10.0.19044
gyp ERR! command "D:\\nodejs\\node.exe" "D:\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=E:\\mydesktop\\images\\node_modules\\clipboard-files\\lib\\binding\\electron-v19.0-win32-x64\\binding.node" "--module_name=binding" "--module_path=E:\\mydesktop\\images\\node_modules\\clipboard-files\\lib\\binding\\electron-v19.0-win32-x64" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=electron-v19.0" "--dist-url=https://atom.io/download/electron"
gyp ERR! cwd E:\mydesktop\images\node_modules\clipboard-files
gyp ERR! node -v v14.18.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'D:\nodejs\node.exe D:\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=E:\mydesktop\images\node_modules\clipboard-files\lib\binding\electron-v19.0-win32-x64\binding.node --module_name=binding --module_path=E:\mydesktop\images\node_modules\clipboard-files\lib\binding\electron-v19.0-win32-x64 --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=electron-v19.0 --dist-url=https://atom.io/download/electron' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (E:\mydesktop\images\node_modules\@mapbox\node-pre-gyp\lib\util\compile.js:89:23)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:400:28)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1058:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5)
node-pre-gyp ERR! System Windows_NT 10.0.19044
node-pre-gyp ERR! command "D:\\nodejs\\node.exe" "E:\\mydesktop\\images\\node_modules\\@mapbox\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd E:\mydesktop\images\node_modules\clipboard-files
node-pre-gyp ERR! node -v v14.18.1
node-pre-gyp ERR! node-pre-gyp -v v1.0.9
node-pre-gyp ERR! not ok
Failed to execute 'D:\nodejs\node.exe D:\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=E:\mydesktop\images\node_modules\clipboard-files\lib\binding\electron-v19.0-win32-x64\binding.node --module_name=binding --module_path=E:\mydesktop\images\node_modules\clipboard-files\lib\binding\electron-v19.0-win32-x64 --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=electron-v19.0 --dist-url=https://atom.io/download/electron' (1)
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install 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\admin\AppData\Roaming\npm-cache\_logs\2022-06-17T10_25_35_556Z-debug.log```
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.