Node.js Ghost CMS-sudo npm安装-生产-错误

Node.js Ghost CMS-sudo npm安装-生产-错误,node.js,npm,blogs,ghost,Node.js,Npm,Blogs,Ghost,我正试图在一个本地流浪者的盒子上安装ghost cms 在输入“sudo npm安装--生产”后,出现以下错误: npm ERR! Linux 3.16.0-4-amd64 npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production" npm ERR! node v4.2.3 npm ERR! npm v3.5.1 `npm ERR! path /var/www/html/ghost/node_module

我正试图在一个本地流浪者的盒子上安装ghost cms

在输入“sudo npm安装--生产”后,出现以下错误:

npm ERR! Linux 3.16.0-4-amd64
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production"

npm ERR! node v4.2.3

npm ERR! npm  v3.5.1

`npm ERR! path /var/www/html/ghost/node_modules/node-pre-

`gyp/node_modules/rc/node_modules/strip-json-comments/cli.js
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory, chmod '/var/www/html/ghost/node_modules/node-pre-gyp/node_modules/rc/node_modules/strip-json-comments/cli.js'
npm ERR! enoent ENOENT: no such file or directory, chmod '/var/www/html/ghost/node_modules/node-pre-gyp/node_modules/rc/node_modules/strip-json-comments/cli.js'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent 

有人能帮我吗

我遇到了同样的问题,我通过在
/usr/bin

$ sudo apt install nodejs-legacy

安装后,返回ghost安装目录,重新运行
sudo npm install--production

您解决过这个问题吗?有相同的问题…我想这可能是同一件事:也有这个问题-任何更新?