2017-05-10 15 views
0

원격 서버 (dukko)에 앱을 배포하고 있으며이 오류가 발생합니다. 도움이나 제안을 주시면 감사하겠습니다.throw new TypeError ('root path required')

/app/node_modules/express/node_modules/serve-static/index.js:40 
remote: throw new TypeError('root path required') 
remote:^
remote: TypeError: root path required 
remote: at Function.serveStatic [as static] 
     (/app/node_modules/express/node_modules/serve-static/index.js:40:11) 
remote: at exports.default (/app/server/config/express.js:129:57) 
remote: at Object. (/app/server/app.js:51:28) 
remote: at Module._compile (module.js:409:26) 
remote: at Object.Module._extensions..js (module.js:416:10) 
remote: at Module.load (module.js:343:32) 
remote: at Function.Module._load (module.js:300:12) 
remote: at Function.Module.runMain (module.js:441:10) 
remote: at startup (node.js:140:18) 
remote: at node.js:1043:3 

유일한 정적 경로는 다음과 같습니다.

app.use(express.static(app.get('appPath'))); 
app.use('/jobseeker', express.static(process.env.JOBSEEKER_UPLOADS)); 
app.use('/employer', express.static(process.env.EMPLOYER_UPLOADS));` 

답변

0

당신은

을 node_modules_dir 설정해야합니다