Hello,
I created a Plist so that my mac remote agent can start automatically, but if the macagent starts through the plist it says that npm is not available. If I start the macagent manually the npm works fine.
The plist file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.atlassian.bamboo-agent</string>
<key>ProgramArguments</key>
<array>
<string>/Users/name/bamboo-agent-home/bin/bamboo-agent.sh</string>
<string>console</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>UserName</key>
<string>name</string>
</dict>
</plist>
I would like to know what to change in my plist file so that npm works.