Tag: macos

在Mac上运行nodejs服务器时出错,找不到合适的图像

unknown406c8f2d5ecb:proves airrider3$ node tronServer.js [Error: dlopen(/Users/airrider3/Documents/proves/node_modules/now/node_modules/node-proxy/build/Release/nodeproxy.node, 1): no suitable image found. Did find: /Users/airrider3/Documents/proves/node_modules/now/node_modules/node-proxy/build/Release/nodeproxy.node: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00] Error: dlopen(/Users/airrider3/Documents/proves/node_modules/now/node_modules/node-proxy/build/Release/nodeproxy.node, 1): no suitable image found. Did find: /Users/airrider3/Documents/proves/node_modules/now/node_modules/node-proxy/build/Release/nodeproxy.node: unknown file type, first eight bytes: 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00 at Object.Module._extensions..node (module.js:485:11) […]

如何在Mac Pro上以pipe理员身份运行terminal

我第一次使用Mac,需要以pipe理员身份运行terminal。 我已经安装了NodeJs和Git,并且想要下载Phone Gap / Corova,但是当我尝试安装Cordova时,它返回一个错误,说我应该是运行terminal的pipe理员。 如何在Mac Pro中以pipe理员身份打开terminal中的命令提示符?

Cordova安装错误:path问题(?) – 错误代码ENOENT

在安装Xcode和NodeJS后,我现在试图安装Cordova,但是我得到以下有关缺less文件(错误的path?)的错误。 Luciens-MacBook-Pro:~ lucientavano$ npm cache clean Luciens-MacBook-Pro:~ lucientavano$ sudo npm install -g cordova Password: npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm /usr/local/lib └── (empty) npm ERR! Darwin 15.3.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "cordova" npm ERR! node v4.2.6 npm […]

如何检查x64 MacOS X 10.7上`node –prof`的结果?

我尝试在CLI上剖析我的node.js脚本。 正如https://code.google.com/p/v8/wiki/V8Profiler或http://blog.arc90.com/2012/03/05/profiling-node-programs-on-mac-os- x / a做: $ node –prof my_script.js 所有好的,我得到一堆名为v8.log文件。 但是在检查工具中都出错了。 $ tools/mac-tick-processor v8.log 给我看 Statistical profiling result from v8.log, (298 ticks, 237 unaccounted, 0 excluded). 和空的JavaScript部分。 [JavaScript]: ticks total nonlib name 另外我尝试https://github.com/bnoordhuis/node-profiler ,但也得到一些结果。 我怎样才能使用–prof结果? $ node -v v0.8.18 $ sw_vers ProductName: Mac OS X ProductVersion: 10.7.4 BuildVersion: 11E53

有没有什么好的node.js IDE for mac?

最近,我开始研究node.js ..我最喜欢的IDE是日食,我想大家都喜欢它。 但是,当我将Junit插件安装到Juno时,是的,它工作,但没有我想象的那样奇特。 我search,发现webmatrix2是相当不错的node.js。 所以,我要去尝试一下。 无论如何,我的问题是,如果有什么好的mac的mac ….

新鲜的反应,本机ios应用程序不build设?

以下是关于我的环境和构build失败日志的详细信息。 任何面临类似的问题或知道步骤来克服这个问题,请指出我的相关步骤或文档。 Xcode:7.2.1 节点:v5.9.0 npm:3.7.3 react-native-cli:0.1.10 react-native:0.22.2 运行“sudo react-native run-ios”会给我留下下面的日志。 日志: ** BUILD FAILED ** The following build commands failed: PhaseScriptExecution Run\ Script /Users/abc/Desktop/REACT-NATIVE/demo/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Script-006B79A01A781F38006873D1.sh (1 failure) Installing build/Build/Products/Debug-iphonesimulator/demo.app No devices are booted. Print: Entry, ":CFBundleIdentifier", Does Not Exist /Users/abc/Desktop/REACT-NATIVE/demo/node_modules/promise/lib/done.js:10 throw err; ^ Error: Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/demo.app/Info.plist Print: Entry, ":CFBundleIdentifier", Does Not Exist […]

用NVM设置Sublime中的path

我在OSX上使用NVM作为我的节点版本pipe理器,除了它会在我的IDE中创build多个问题之外,这非常棒。 我正在使用Sublime Text和大多数我曾经使用的插件在/usr/local/bin查找nodejs,并且由于我使用NVM节点显然在该位置不可用,而在/Users/${User}/.nvm/${NodeVersion}/bin/node 。 我有一个更新该插件的configurationnodejspath的选项,但是当我安装另一个插件,我必须做同样的事情。 同样适用于使用CoffeeScript,LESScss等。 此外,当我通过NVM更新我的节点版本时,我必须再次更新所有configuration中的path。 NVM在尝试为我解决问题的时候已经产生了更多的问题。 更新:很长一段时间后,我终于能够解决问题,使用艾萨克斯辉煌的解决scheme – 中殿 。 nave usemain stable命令,只是足够了解你的情绪:)

将一个Node.js应用程序打包为一个osx应用程序

我想为我们的开发人员用来pipe理其开发环境的一系列terminal命令构build一个接口。 我想尝试在node.js中构build它。 现在,我想我可以创build它作为一个HTML5 / CSS3 / JS应用程序使用快递,等等…然后想打包成一个本地的OSX应用程序。 意思是,我可以发送一个应用程序,他们双击并运行,但要么启动Chrome浏览器,并导航到命中脚本的localhost:端口服务器,或者只是启动服务器,并指示用户去url 。 无论哪种方式都很好。 我这样做是因为我需要访问本地系统,以便能够configuration许多事物并与任何数量的正在运行的(无头虚拟机)进行交互。 所以我不能简单地从服务器上提供这个服务器,让他们访问这个站点。 有任何想法吗? 谢谢, 路易斯

在OSX上的MeanJS安装过程中,node-pre-gyp install –fallback-to-build`失败

我刚刚使用Windows很长一段时间后,自己买了一本mac书。 我正在努力研究我一直在研究的一个MeanJS项目。 在项目上npm install会导致错误 Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build –fallback-to-build –module=/Users/Aayush/Work/lishn/repo/lishn-alpha/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.4.6/node-v46-darwin-x64/debug.node –module_name=debug –module_path=/Users/Aayush/Work/lishn/repo/lishn-alpha/node_modules/grunt-node-inspector/node_modules/node-inspector/node_modules/v8-debug/build/debug/v0.4.6/node-v46-darwin-x64' (1) npm ERR! Darwin 15.0.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" npm ERR! node v4.1.1 npm ERR! npm v2.14.4 npm ERR! code ELIFECYCLE > > npm ERR! v8-debug@0.4.6 install: `node-pre-gyp install –fallback-to-build` npm ERR! Exit status 1 npm ERR! npm ERR! […]

NPM:在OS X El Capitan上找不到“ld:library for -lgcc_s.10.5”?

当我使用npm install来安装这个仓库的依赖时,我遇到了这样的错误: > fsevents@0.3.8 install /Users/hanfeisun/Workspace/vue-webpack-example/node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents > node-gyp rebuild SOLINK_MODULE(target) Release/.node ld: library not found for -lgcc_s.10.5 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [Release/.node] Error 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit […]