Tag: macos

如何在OSX Yosemite上使用node.js 0.12正确安装node-inspector?

我正在尝试使用以下命令安装节点检查器: sudo npm install -g node-inspector 我得到以下结果: > ws@0.4.32 install /usr/local/lib/node_modules/node-inspector/node_modules/ws > (node-gyp rebuild 2> builderror.log) || (exit 0) shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied > v8-debug@0.3.5 install /usr/local/lib/node_modules/node-inspector/node_modules/v8-debug > node-pre-gyp install –fallback-to-build shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied sh: node-pre-gyp: command not […]

OSX – 打包一个基于shell的交互式二进制文件

我已经创build了一个小的NodeJS脚本,使用EncloseJS编译,以便应用程序变成它自己的二进制文件。 该应用程序的目的是在terminal运行,并与用户交互。 我想把它打包在一个.app中,所以感觉像一个普通用户可以运行的完整应用程序。 我怎样才能解决这个问题? 到目前为止,我已经尝试了鸭嘴兽的结果混杂,因为它似乎不正确退出。

如何获得在Mac上使用Node.js在前台运行的应用程序窗口的坐标?

我正在编写一个将在Mac电脑上运行的node.js脚本。 我想获得在前台运行的应用程序的坐标和处理细节。 例如,如果我运行的脚本,我已经打开的唯一的程序是谷歌浏览器,那么我应该得到一个包含1个对象的数组: Google Chrome的进程ID Google Chrome窗口的x / y坐标。 到目前为止,我所能做的就是获取正在运行的进程列表: ps-node :进程查找实用程序 如果有帮助,我也将使用nw.js框架来运行我的应用程序。

始终显示托盘图标

我正在使用Electron编写OSX应用程序,主要关注托盘。 基本上,它只显示当前应用程序正在使用,我怎么能设置它,使其独立于窗口?

无法删除全局包

试图删除一个全局包,它似乎并没有被删除。 $ eslint -v v1.10.3 $ npm uninstall eslint -g $ sudo npm uninstall eslint -g $ eslint -v v1.10.3 $ sudo eslint -v v1.10.3 $ which eslint /usr/local/bin/eslint 你可以看到eslint仍然在版本1.10.3。 为什么这不是删除?

错误安装nodejs … SSL_COMP_get_compression_methods

在mac os x leopard上安装node-v0.4.8,出现如下错误: ../src/node_crypto.cc:2917: error: 'SSL_COMP_get_compression_methods' was not declared in this scope Waf: Leaving directory `/usr/local/node-v0.4.8/build' Build failed: -> task failed (err #1): {task: cxx node_crypto.cc -> node_crypto_4.o} make: *** [program] Error 1 任何人遇到这个错误安装最新的nodejs? 感谢您的任何build议。

未能在Mac OS x上使用npm安装cordova x

嗨,我试图安装与npm的cordova sudo npm install -g cordova 我有这个错误 npm ERR! Error: EACCES, symlink '../lib/node_modules/cordova/bin/cordova' npm ERR! { [Error: EACCES, symlink '../lib/node_modules/cordova/bin/cordova'] npm ERR! errno: 3, npm ERR! code: 'EACCES', npm ERR! path: '../lib/node_modules/cordova/bin/cordova' } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! System Darwin 11.4.2 npm ERR! command "node" "/usr/local/bin/npm" […]

Yeoman返回'env:node \ r:没有这样的文件或目录'

我按照这些说明来安装Yeoman 。 一切都很好,直到我进入目录,并执行yo webapp从terminal(也尝试sudo yo webapp )。 它返回env: node\r: No such file or directory ,我从来没有达到select这种types的networking应用程序的步骤。 有任何想法吗? 在Mac OS 10.9上。 更新了Ruby,Node.js,Git。 而且从我读过的Yeoman安装Grunt和Bower。

在OSX Lion上安装NPM

我想在OSX Lion上安装NPM,我运行这个命令: curl https://npmjs.org/install.sh | sudo sh 要求键入“是”,我可以得到这个: All clean! ! [ -d .git ] || git submodule update –init –recursive node cli.js rm npm -g -f node cli.js cache clean Assertion failed: ((req->result == -1 && req->ptr == NULL) || (req->result >= 0 && req->ptr != NULL)), function uv_fs_req_cleanup, file src/unix/fs.c, line 89. make: […]

在Mac OS上使用Nightwatchjs在Chrome中启动testing:“拒绝连接! selenium服务器启动了吗?

我可以使用以下命令在Firefox中运行我的testing: nightwatch -t tests/test4.js 我的nightwatchjs.jsonconfiguration文件: { "src_folders" : ["tests"], "output_folder" : "reports", "custom_commands_path" : "", "custom_assertions_path" : "", "globals_path" : "", "selenium" : { "start_process" : true, "server_path" : "selenium-server-standalone-2.44.0.jar", "log_path" : "", "host" : "127.0.0.1", "port" : 4444, "cli_args" : { "webdriver.chrome.driver" : "drivers/chromedriver" } }, "test_settings" : { "default" : { "launch_url" : […]