Articles of osx mountain lion

OSX为节点的永久处理启动了plist

我正在尝试为我的节点服务器编写launchd.plist文件。 我永远使用运行我的节点服务器。 我希望服务器在启动时启动。 我也想等待蒙古人启动plist首先运行。 我用自制软件安装了mongobb,已经有了launchd.plist。 我已经执行了以下内容: $ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist plong for mongodb是: <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>homebrew.mxcl.mongodb</string> <key>ProgramArguments</key> <array> <string>/usr/local/opt/mongodb/mongod</string> <string>run</string> <string>–config</string> <string>/usr/local/etc/mongod.conf</string> </array> <key>RunAtLoad</key> <true/> <key>KeepAlive</key> <false/> <key>WorkingDirectory</key> <string>/usr/local</string> <key>StandardErrorPath</key> <string>/usr/local/var/log/mongodb/output.log</string> <key>StandardOutPath</key> <string>/usr/local/var/log/mongodb/output.log</string> <key>HardResourceLimits</key> <dict> <key>NumberOfFiles</key> <integer>1024</integer> </dict> <key>SoftResourceLimits</key> <dict> <key>NumberOfFiles</key> <integer>1024</integer> </dict> </dict> </plist> 如果我closures了电脑,并重新启动mongodb应该启动。 […]

npm不会从项目中的package.json安装

在我的MacBook Air上,我只能使用sudo在全局安装npm软件包,但是每当我进入本地目录并尝试安装没有-g的本地软件包时,都会给我带来错误。 npm ERR! Error: EACCES, open '/Users/mmarze/.npm/53951495-coffee-script.lock' npm ERR! { [Error: EACCES, open '/Users/mmarze/.npm/53951495-coffee-script.lock'] npm ERR! errno: 3, npm ERR! code: 'EACCES', npm ERR! path: '/Users/mmarze/.npm/53951495-coffee-script.lock' } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! System Darwin 12.1.0 npm ERR! command "node" "/usr/local/bin/npm" "install" "coffee-script" npm ERR! cwd […]

如何解决安装Yeoman后“哟:命令未find”

遵循这些指示,我试图用npm安装yeoman两次:http: //yeoman.io/learning/index.html 第一次失败后,我使用这些指令卸载节点: 如何完全卸载Node.js,并从开始(Mac OS X)重新安装然后,我安装了nvm和节点/ npm(通过nvm)一个错误: [Yeoman Doctor] Uh oh, I found potential errors on your machine ————— [Error] NPM root value is not in your NODE_PATH [info] NODE_PATH = /Users/joanna/.nvm/v0.10.22/lib/node_modules:. NPM root = /Users/joanna/.node/lib/node_modules [Fix] Append the NPM root value to your NODE_PATH variable Add this line to your .bashrc export NODE_PATH=$NODE_PATH:/Users/joanna/.node/lib/node_modules Or […]

在Mac OS X 10.8上安装GraphicsMagick

我正试图在Mountain Lion上安装GraphicsMagick,并遇到问题。 我尝试了所有可以在博客和其他stackoverflow问题search的东西,但没有任何工作。 所以我已经把每一个命令的错误都放在了一堆。 请帮我看看。 当我跑步 brew install graphicsmagick 我明白了 Warning: Could not link jpeg. Unlinking… Error: The `brew link` step did not complete successfully The formula built, but is not symlinked into /usr/local You can try again using `brew link jpeg' 和 Warning: Could not link libpng. Unlinking… Error: The `brew link` step did […]