0

I cloned my ghost repo onto another computer and ran npm install to install all of the dependencies locally and after I try to run npm start to start up the ghost server locally, I am thrown this error:

user:user-folder user$ npm start

> ghost@0.6.4 start /Users/user/Desktop/Projects/node/user-folder
> node index

module.js:338
    throw err;
          ^
Error: Cannot find module 'xmlbuilder'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/user/Desktop/Projects/node/user-folder/node_modules/nodemailer/node_modules/aws-sdk/lib/xml/builder.js:2:15)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/user/Desktop/Projects/node/user-folder/node_modules/nodemailer/node_modules/aws-sdk/lib/core.js:42:14)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)

npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "start"
npm ERR! node v0.12.2
npm ERR! npm  v2.7.5
npm ERR! code ELIFECYCLE
npm ERR! ghost@0.6.4 start: `node index`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the ghost@0.6.4 start script 'node index'.
npm ERR! This is most likely a problem with the ghost package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node index
npm ERR! You can get their info via:
npm ERR!     npm owner ls ghost
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/user/Desktop/Projects/node/user-folder/npm-debug.log

I'm not sure where this issue starts, but I'm assuming it is either with the start script or something within the dependencies that needs to be configured

cphill
  • 5,596
  • 16
  • 89
  • 182

2 Answers2

0

It seems that xmlbuilder is nod installed please run

sudo npm install xmlbuilder

in the terminal and then run

npm start
Aditya_Anand
  • 525
  • 7
  • 17
0

You need to make sure that you are under the path /usr/local/lib/node_modules/ionic/node_modules and then run

sudo npm install xmlbuilder

Hope this will solve your problem

foo0507
  • 1
  • 2