Giter VIP home page Giter VIP logo

Comments (20)

alex8088 avatar alex8088 commented on June 16, 2024

你好,我在MAC下编译的时候提示404
地址:https://github.com/alex8088/clipboard-files/releases/download/v0.0.9/node-v57-darwin-x64.tar.gz
能帮忙编译一个版本吗。

谢谢了

node 下,使用以下命令安装,也可以使用target参数指定node版本
npm i clipboard-files --build-from-source
electron下,使用以下命令安装:
npm i clipboard-files --build-from-source --runtime=electron --target=7.1.2 --target-arch=ia32 --dist-url=https://atom.io/download/electron

如果还是编译了,你提供一下node的版本,给你编译一个版本

from clipboard-files.

shenlanchenwei avatar shenlanchenwei commented on June 16, 2024

@alex8088 你好,我在windows平台下执行
npm i clipboard-files --build-from-source --runtime=electron --target=8.0.0 --target-arch=ia32 --dist-url=https://atom.io/download/electron
安装,最后他还是编译成64位,按道理应该要编译成32位的,请问您知道原因吗?

from clipboard-files.

alex8088 avatar alex8088 commented on June 16, 2024

@alex8088 你好,我在windows平台下执行
npm i clipboard-files --build-from-source --runtime=electron --target=8.0.0 --target-arch=ia32 --dist-url=https://atom.io/download/electron
安装,最后他还是编译成64位,按道理应该要编译成32位的,请问您知道原因吗?

try --target_arch=ia32

from clipboard-files.

shenlanchenwei avatar shenlanchenwei commented on June 16, 2024

--target_arch=ia32
好像是命令写错了,更正就可以了!麻烦你更新下你的那个命令,你主页上的写错了!

from clipboard-files.

liamcindy avatar liamcindy commented on June 16, 2024

@alex8088 你好,麻烦问一下MAC下报错,是需要配置哪里么?

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSViewController.h:247:39: error:
unknown type name 'NSExtensionContext'; did you mean 'NSAnimationContext'?
@Property (nullable, readonly,retain) NSExtensionContext *extensionContext API_AVAILABLE(macos(10.10));
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAnimationContext.h:18:12: note:
'NSAnimationContext' declared here
@interface NSAnimationContext : NSObject

from clipboard-files.

alex8088 avatar alex8088 commented on June 16, 2024

@alex8088 你好,麻烦问一下MAC下报错,是需要配置哪里么?

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSViewController.h:247:39: error:
unknown type name 'NSExtensionContext'; did you mean 'NSAnimationContext'?
@Property (nullable, readonly,retain) NSExtensionContext *extensionContext API_AVAILABLE(macos(10.10));
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAnimationContext.h:18:12: note:
'NSAnimationContext' declared here
@interface NSAnimationContext : NSObject

不需要配置什么,是否在nodejs下使用,看报错信息和addon没有关系,请提供一下你使用方式的代码

from clipboard-files.

liamcindy avatar liamcindy commented on June 16, 2024

@alex8088 你好,使用的这个命令
npm i clipboard-files --build-from-source --runtime=electron --target=4.2.12 --target-arch=ia32 --dist-url=https://atom.io/download/electron
我的系统是macOS 10.15.6

from clipboard-files.

alex8088 avatar alex8088 commented on June 16, 2024

@alex8088 你好,使用的这个命令
npm i clipboard-files --build-from-source --runtime=electron --target=4.2.12 --target-arch=ia32 --dist-url=https://atom.io/download/electron
我的系统是macOS 10.15.6

npm i clipboard-files --build-from-source --runtime=electron --target=4.2.12 --dist-url=https://atom.io/download/electron

macOS平台一般都是64位的

from clipboard-files.

liamcindy avatar liamcindy commented on June 16, 2024

@alex8088 非常感谢

from clipboard-files.

alex8088 avatar alex8088 commented on June 16, 2024

close

from clipboard-files.

KotoriMinami avatar KotoriMinami commented on June 16, 2024

@alex8088 你好,请问一下,我在mac下执行npm i clipboard-files --build-from-source --runtime=electron --target=10.0.0 --dist-url=https://atom.io/download/electron 以后,启动项目时提示

This dependency was not found:

  • aws-sdk in ./node_modules/node-pre-gyp/lib/info.js, ./node_modules/node-pre-gyp/lib/publish.js and 1 other

To install it, you can run: npm install --save aws-sdk
是什么原因。 在win10下是正常的

from clipboard-files.

alex8088 avatar alex8088 commented on June 16, 2024

@alex8088 你好,请问一下,我在mac下执行npm i clipboard-files --build-from-source --runtime=electron --target=10.0.0 --dist-url=https://atom.io/download/electron 以后,启动项目时提示

This dependency was not found:

  • aws-sdk in ./node_modules/node-pre-gyp/lib/info.js, ./node_modules/node-pre-gyp/lib/publish.js and 1 other

To install it, you can run: npm install --save aws-sdk
是什么原因。 在win10下是正常的

npm包安装问题,尝试删除node_modules包,在你的项目package中去除clipboard-files,再install,完成后再单独安装clipboard-files

from clipboard-files.

cnchore avatar cnchore commented on June 16, 2024

@alex8088 你好,Darwin 20.6.0 ,node:14.17.5,帮忙编译一个[email protected]

from clipboard-files.

alex8088 avatar alex8088 commented on June 16, 2024

@alex8088 你好,Darwin 20.6.0 ,node:14.17.5,帮忙编译一个[email protected]

是无法编译吗,使用1.0.4版本试一试

from clipboard-files.

cnchore avatar cnchore commented on June 16, 2024

@alex8088 1.0.4也不行
npm i [email protected] --build-from-source --runtime=electron --target=14.17.5 --target_arch=x64 --dist-url=https://atom.io/download/electron

[email protected] install /Users/electron-demo/app/node_modules/clipboard-files
node-pre-gyp install --fallback-to-build

CXX(target) Release/obj.target/binding/src/main.o
In file included from ../src/main.cc:5:
In file included from ../src/clip_osx.h:1:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:12:
/Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h:91:143: error: function does not return NSString

  • (NSAttributedString *)localizedAttributedStringForKey:(NSString *)key value:(nullable NSString *)value table:(nullable NSString *)tableName NS_FORMAT_ARGUMENT(1) NS_REFINED_FOR_SWIFT API_AVAILABLE(macos(12.0), ios(15.0), watchos(8.0), tvos(15.0));
    ~~~~~~~~~~~~~~ ^ ~
    /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:103:48: note: expanded from macro 'NS_FORMAT_ARGUMENT'
    #define NS_FORMAT_ARGUMENT(A) attribute ((format_arg(A)))
    ^ ~
    1 error generated.
    make: *** [Release/obj.target/binding/src/main.o] Error 1
    gyp ERR! build error
    gyp ERR! stack Error: make failed with exit code: 2
    gyp ERR! stack at ChildProcess.onExit (/Users/.nvm/versions/node/v14.17.5/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
    gyp ERR! stack at ChildProcess.emit (events.js:400:28)
    gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
    gyp ERR! System Darwin 20.6.0
    gyp ERR! command "/Users/.nvm/versions/node/v14.17.5/bin/node" "/Users/.nvm/versions/node/v14.17.5/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/electron-demo/app/node_modules/clipboard-files/lib/binding/electron-v14.17-darwin-x64/binding.node" "--module_name=binding" "--module_path=/Users/electron-demo/app/node_modules/clipboard-files/lib/binding/electron-v14.17-darwin-x64" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=electron-v14.17"
    gyp ERR! cwd /Users/electron-demo/app/node_modules/clipboard-files
    gyp ERR! node -v v14.17.5
    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 '/Users/.nvm/versions/node/v14.17.5/bin/node /Users/.nvm/versions/node/v14.17.5/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/electron-demo/app/node_modules/clipboard-files/lib/binding/electron-v14.17-darwin-x64/binding.node --module_name=binding --module_path=/Users/electron-demo/app/node_modules/clipboard-files/lib/binding/electron-v14.17-darwin-x64 --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=electron-v14.17' (1)
    node-pre-gyp ERR! stack at ChildProcess. (/Users/electron-demo/app/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:1055:16)
    node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
    node-pre-gyp ERR! System Darwin 20.6.0
    node-pre-gyp ERR! command "/Users/.nvm/versions/node/v14.17.5/bin/node" "/Users/electron-demo/app/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
    node-pre-gyp ERR! cwd /Users/electron-demo/app/node_modules/clipboard-files
    node-pre-gyp ERR! node -v v14.17.5
    node-pre-gyp ERR! node-pre-gyp -v v1.0.9
    node-pre-gyp ERR! not ok
    Failed to execute '/Users/.nvm/versions/node/v14.17.5/bin/node /Users/.nvm/versions/node/v14.17.5/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/electron-demo/app/node_modules/clipboard-files/lib/binding/electron-v14.17-darwin-x64/binding.node --module_name=binding --module_path=/Users/electron-demo/app/node_modules/clipboard-files/lib/binding/electron-v14.17-darwin-x64 --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=electron-v14.17' (1)
    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! /Users/.npm/_logs/2022-05-09T11_33_46_435Z-debug.log

from clipboard-files.

alex8088 avatar alex8088 commented on June 16, 2024

@cnchore 你的target目标14.17.4并不存在,你看看你electron版本是多少

from clipboard-files.

alex8088 avatar alex8088 commented on June 16, 2024

@cnchore target 应该指定electron的版本而不是node的版本

from clipboard-files.

jsqq520 avatar jsqq520 commented on June 16, 2024

您好,我在我在windows平台下执行

npm i clipboard-files --build-from-source --runtime=electron --target=15.3.5 --target_arch=x64 --dist-url=https://atom.io/download/electron

报错了,node版本是v16.14.0,Python 3.10.4

@alex8088

from clipboard-files.

alex8088 avatar alex8088 commented on June 16, 2024

@jsqq520 electron headers下载不了 --dist-url 改成 https://electronjs.org/headers 试一试

from clipboard-files.

jsqq520 avatar jsqq520 commented on June 16, 2024

@jsqq520 electron headers下载不了 --dist-url 改成 https://electronjs.org/headers 试一试

已经可以了,谢谢

from clipboard-files.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.