1
Nodeclipse 플러그인을 사용하여 Eclipse에서 샘플 Node.js 앱을 실행하면 다음 오류가 발생합니다.Nodeclipse 플러그인을 사용하여 Eclipse에서 Node.js 응용 프로그램을 시작하면 경로 오류가 발생합니다.
path.js:8
throw new TypeError('Path must be a string. Received ' +
^TypeError: Path must be a string. Received undefined
at assertPath (path.js:8:11)
at Object.posix.join (path.js:479:5)
at getPortsFile (/Users/Manglu/git/weather-company-data-demo/node_modules/ports/index.js:62:15)
at Object.<anonymous> (/Users/Manglu/git/weather-company-data-demo/node_modules/ports/index.js:13:29)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
처음에는 최근에 수행 한 Node.js 업그레이드의 결과인지 의심 스러웠습니다. 그러나 터미널 세션에서 실행될 때 응용 프로그램이 실행될 때 Eclipse/Nodeclipse 중 하나로 축소되었습니다.
기본 환경 변수가 정확히 무엇인지 알면 좋을 것입니다. (Nodeclipse Console 참조). 문제 제기는 https://github.com/Nodeclipse/nodeclipse-1/ –
나를 위해 일한 반면, PATH 변수를 수동으로 설정하지 않았다. @PaulVerest를 인용하면 실제로 필요한 것이 무엇인지를 아는 것이 흥미로울 것입니다 (비즈니스 범위의 환경 변수를 제외하고, 분명히). – Mena