Giter Site home page Giter Site logo

npm run staticServ 启动错误 about wemall HOT 3 OPEN

shen100 avatar shen100 commented on June 8, 2024
npm run staticServ 启动错误

from wemall.

Comments (3)

monlone avatar monlone commented on June 8, 2024

您好,shen,请问这个问题如何解决?

from wemall.

mycheryhr avatar mycheryhr commented on June 8, 2024

[email protected] staticServ /data/wemall/nodejs
node staticServ.js

/data/wemall/nodejs/node_modules/serve-static/index.js:40
throw new TypeError('root path required')
^

TypeError: root path required
at Function.serveStatic [as static] (/data/wemall/nodejs/node_modules/serve-static/index.js:40:11)
at Object. (/data/wemall/nodejs/staticServ.js:42:44)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:389:7)
at startup (bootstrap_node.js:149:9)

npm ERR! Linux 3.10.0-514.16.1.el7.x86_64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "staticServ"
npm ERR! node v6.11.1
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! [email protected] staticServ: node staticServ.js
npm ERR! Exit status 1
npm ERR!

同样的问题,求大神解决

from wemall.

acter avatar acter commented on June 8, 2024

根据readme.md 顺序不要跳过,提示没有设置图片地址的问题,去设置config.uploadImgDir

from wemall.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.