簡體   English   中英

Ghost CMS-sudo npm install --production-錯誤

[英]Ghost CMS - sudo npm install --production - Error

我正在嘗試在本地無業游民的盒子上安裝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 

誰能幫我這個?

我遇到了同樣的問題,並通過在/usr/bin運行以下命令解決了該問題

$ sudo apt install nodejs-legacy

安裝完成后,返回到您的ghost安裝目錄,然后重新運行sudo npm install --production

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM