Comments (3)
您好,shen,请问这个问题如何解决?
from wemall.
[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.
根据readme.md 顺序不要跳过,提示没有设置图片地址的问题,去设置config.uploadImgDir
from wemall.
Related Issues (20)
- iris能否升级?
- 有demo网站可以访问吗? HOT 3
- Mac 关于 'go run main.go' 报错。google 查过了无果,求助。 HOT 1
- $ npm run staticServ
- go run main.go
- Crash error when go run main.go HOT 2
- can't find packet HOT 2
- 请教原因 Error: read ENOTCONN HOT 1
- VSC下调试代码,出错,请教:
- 什么思路让你用go+node+react呢 HOT 2
- Vue的微信商城部分在哪? HOT 1
- Deploying in Heroku
- 技术选型很棒
- 这个项目还维护么? HOT 1
- 是不是暂停了3年了
- 编译不起来,一堆报错
- 什么时候支持微服务
- nodejs里的2个项目具体应该怎么才能跑起来啊 HOT 1
- 关于iris.v6这个框架问题 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wemall.