试图在github项目的mac-osx上进行npm安装.在packages.json中看不到pkg-config为什么node-gyp会期待这个?似乎node-gyp应该包含pkg-config.我认为这是节点的工作方式.安装一个包,它可以提供任何需要的东西.我想这是不同的.还想知道它正在寻找哪个版本的pkg-config.
是的,我一直在那里下载tarball,但它的mac安装说明真的是无稽之谈.它保持./configure然后make install.但是makefile不可用,并且所有内容都在同一目录级别,但它表示cd进入代码目录等.
> node-gyp rebuild /bin/sh: pkg-config: command not found gyp: Call to 'pkg-config libzmq --libs' returned exit status 127. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16) gyp ERR! stack at ChildProcess.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12) gyp ERR! System Darwin 12.5.0 gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/Mac1/Downloads/projdirectory/node_modules/zmq gyp ERR! node -v v0.10.35 gyp ERR! node-gyp …
我只是想在Android stu中编译最新版本的u2020-daggr2![我将它作为gradle项目导入.但我得到错误抱怨gradle!我确实编辑了gradle-wrapper.properties.然而,重建不起作用.我确实看到:Gradle 2.1是必需的迁移到Gradle包装器和同步项目 ,这似乎是同样的问题,但在Studio上我没有找到:
设置 - > Gradle并单击使用默认gradle包装器(推荐).
我没有在Studio中找到这样做的地方.首先,没有菜单只是说设置.有:文件 - >其他设置 - >默认设置.但除了gradle vm参数之外什么都没有.没有关于使用默认gradle包装器的信息.
我是否需要有gradle 2.1的本地副本才能使用?
![在此处输入图像说明] [4]
gradle wrapper.properties按如下方式编辑:distributionUrl = https://services.gradle.org/distributions/gradle-2.1-all.zip
错误:(20)评估根项目'u2020-dagger2'时出现问题.
无法应用插件[id'com.android.application'] Gradle 2.1版是必需的.当前版本是2.2.1.如果使用gradlewrapper,请尝试将/ Users/Mac1/Downloads/u2020-dagger2 /gradle/wrapper/gradle-wrapper.properties中的distributionUrl编辑为gradle-2.1-all.zip
android gradle android-studio build.gradle android-gradle-plugin
我有一个节点应用程序,每隔几秒作为 cron 作业运行一次:
var CronJob = require('cron').CronJob;
new CronJob('*/5 * * * * *', function(){
console.log('Here invoke a script called requestdata');
}, null, true, "America/Los_Angeles");
Run Code Online (Sandbox Code Playgroud)
我只想调用一个脚本而不调用它的函数。所以它不是
requestdata.foo();
Run Code Online (Sandbox Code Playgroud)
但只需在同一目录中调用 requestdata 即可。这是怎么做到的?如果是在命令行上我会这样做:
node requestdata
Run Code Online (Sandbox Code Playgroud)
但我如何在另一个脚本中执行此操作?
有没有人知道Eclipse的Android Gradle支持是否符合要求或者是不是很难不进入Android Studio?Eclipse Android是否完全是Jurrasic Park?
android ×2
node.js ×2
adt ×1
build.gradle ×1
gradle ×1
macos ×1
node-gyp ×1
pkg-config ×1
zeromq ×1