搜尋

首頁  >  問答  >  主體

node.js - 启动npm start 报错 ,怎么办

verbose pkgid doracms@1.1.1
16 verbose cwd /Users/myjianyue/Desktop/projectsSpace/express/DoraCMS
17 error Darwin 16.4.0
18 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" "app.js"
19 error node v6.9.5
20 error npm v3.10.10
21 error code ELIFECYCLE
22 error doracms@1.1.1 start: node ./bin/www "app.js"
22 error Exit status 1
23 error Failed at the doracms@1.1.1 start script 'node ./bin/www "app.js"'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the doracms package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error node ./bin/www "app.js"
23 error You can get information on how to open an issue for this project with:
23 error npm bugs doracms
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls doracms
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

PHP中文网PHP中文网2784 天前636

全部回覆(3)我來回復

  • 高洛峰

    高洛峰2017-04-17 16:18:19

    貼出npm官網對npm start的解釋(官網連結):

    就是說:
    npm start 會預設執行package.json中scripts物件下"start"欄位對應的語句,如果scripts物件下沒有設定」start「欄位的值,則npm會預設執行這條語句:

    node server.js

    請先檢查package.json中的配置,scripts下是否有start字段,如沒有,看是否有對應的server.js檔案。

    回覆
    0
  • 高洛峰

    高洛峰2017-04-17 16:18:19

    確保你安裝了最新版本的node.js和npm。
    如果你這樣做,這很可能是doracms包的問題,而不是npm本身的問題。告訴作者這在你的系統上失敗了:

    這是上面的錯誤提示

    回覆
    0
  • 大家讲道理

    大家讲道理2017-04-17 16:18:19

    貼一下你的package.json的檔案配置,

    回覆
    0
  • 取消回覆