【问题标题】:Ghost CMS - sudo npm install --production - ErrorGhost CMS - sudo npm install --production - 错误
【发布时间】:2016-03-14 03:09:47
【问题描述】:

我正在尝试在本地流浪者盒子上安装 ghost cms。

在我输入“sudo npm install --production”后我得到这个错误:

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 

谁能帮我解决这个问题?

【问题讨论】:

标签: node.js npm blogs ghost


【解决方案1】:

我遇到了同样的问题,我通过在/usr/bin 中运行以下命令来修复它

$ sudo apt install nodejs-legacy

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-06-07
    • 2013-12-14
    • 1970-01-01
    • 1970-01-01
    • 2021-05-15
    • 2013-09-15
    • 1970-01-01
    • 2021-07-14
    相关资源
    最近更新 更多