Error while running Appium latest version


i got the latest version of appium 1.4.0 using npm install -g appium and without any errors. But when i try to run the tests it errors out saying

error: Failed to start an Appium session, err was: Error: ENOENT, stat '/usr/local/lib/node_modules/appium/build/SafariLauncher/

info: [debug] Error: ENOENT, stat '/usr/local/lib/node_modules/appium/build/SafariLauncher/ at Error (native)info: [debug] Responding to client with error: {“status”:33,“value”:{“message”:“A new session could not be created. (Original error: ENOENT, stat ‘/usr/local/lib/node_modules/appium/build/SafariLauncher
/’)”,“errno”:-2,“code”:“ENOENT”,“path”:"/usr/local/lib/node_modules/appium/build/SafariLauncher/",“origValue”:“ENOENT, stat ‘/usr/local/lib/node_modules/appium/build/SafariLauncher/’”},“sessionId”:null}
info: <-- POST /wd/hub/session 500 13.397 ms - 411

and when i cd into /usr/local/lib/node_modules/appium/build i couldn’t find SafariLauncher folder at all.

The test working fine with 1.3.7