search

Home  >  Q&A  >  body text

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 days ago633

reply all(3)I'll reply

  • 高洛峰

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

    Post the npm official website’s explanation of npm start (official website link):

    That is to say:
    npm start will execute the statement corresponding to the "start" field under the scripts object in package.json by default. If the value of the "start" field is not set under the scripts object, npm will execute this statement by default:

    node server.js

    Please check the configuration in package.json first to see if there is a start field under scripts. If not, see if there is a corresponding server.js file.

    reply
    0
  • 高洛峰

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

    Make sure you have the latest version of node.js and npm installed.
    If you do, this is most likely a problem with the doracms package,not with npm itself.Tell the author that this fails on your system:

    这是上面的错误提示

    reply
    0
  • 大家讲道理

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

    Post your package.json file configuration,

    reply
    0
  • Cancelreply