2014-06-07 5 views
3

je reçois une erreur quand je lance cette commande:fantôme installer NPM

npm install --production 

Aide s'il vous plaît.

npm ERR! install Couldn't read dependencies 
npm ERR! package.json ENOENT, open '/root/package.json' 
npm ERR! package.json This is most likely not a problem with npm itself. 
npm ERR! package.json npm can't find a package.json file in your current directory. 

npm ERR! System Linux 2.6.32-042stab088.4 
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production" 
npm ERR! cwd /root 
npm ERR! node -v v0.10.28 
npm ERR! npm -v 1.4.4 
npm ERR! path /root/package.json 
npm ERR! code ENOPACKAGEJSON 
npm ERR! errno 34 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR! /root/npm-debug.log 
npm ERR! not ok code 0 

J'ai essayé d'exécuter la commande dans le répertoire avec Ghost. Et est sorti cette erreur:

[email protected] install /var/www/node_modules/sqlite3 node-pre-gyp install --fallback-to-build

/usr/bin/env: node: No such file or directory 
npm WARN This failure might be due to the use of legacy binary "node" 
npm WARN For further explanations, please read 
/usr/share/doc/nodejs/README.Debian 

npm ERR! [email protected] install: `node-pre-gyp install --fallback-to-build` 
npm ERR! Exit status 127 
npm ERR! 
npm ERR! Failed at the [email protected] install script. 
npm ERR! This is most likely a problem with the sqlite3 package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  node-pre-gyp install --fallback-to-build 
npm ERR! You can get their info via: 
npm ERR!  npm owner ls sqlite3 
npm ERR! There is likely additional logging output above. 

npm ERR! System Linux 2.6.32-042stab088.4 
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production" 
npm ERR! cwd /var/www 
npm ERR! node -v v0.10.28 
npm ERR! npm -v 1.4.4 
npm ERR! code ELIFECYCLE 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  /var/www/npm-debug.log 
npm ERR! not ok code 0` 
+0

J'ai essayé d'exécuter la commande dans le répertoire avec Ghost. Et est sorti cette erreur: – md23

Répondre

2

Depuis votre sortie, il me semble que vous n'êtes pas dans le répertoire d'installation fantôme. Pourriez-vous s'il vous plaît essayer de cd dans le répertoire où se trouve la source de Ghost et relancez la commande?

+1

Il y a toujours un problème. –