2016-11-04 2 views
0

첫 번째 Angular2 응용 프로그램을 만들었으므로 서버에 배포하고 싶습니다. 내 개발 플랫폼에서 응용 프로그램을 실행 (Windows에서 Pycharm) 및 응용 프로그램을 서버에서 실행할 때 다음 오류가 발생합니다. 나는 무엇이 잘못되었는지 전혀 모른다. 코드는 sudo 권한없이 NPM 실행되기 때문에 어쩌면 그것의 https://github.com/DamenShipyards/DatabaseChecksFrontend서버에서 npm을 시작할 수 없습니다.

C:\DatabaseChecksFrontend>npm start 

> [email protected] start C:\DatabaseChecksFrontend 
> tsc && concurrently "npm run tsc:w" "npm run lite" 

app/app.module.ts(8,30): error TS2307: Cannot find module './check.component'. 
app/app.module.ts(9,31): error TS2307: Cannot find module './groups.component'. 
app/app.module.ts(10,29): error TS2307: Cannot find module './grid.component'. 
app/app.module.ts(11,38): error TS2307: Cannot find module './highlightcode.dire 
ctive'. 

npm ERR! Windows_NT 6.1.7601 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\ 
node_modules\\npm\\bin\\npm-cli.js" "start" 
npm ERR! node v6.9.0 
npm ERR! npm v3.10.8 
npm ERR! code ELIFECYCLE 
npm ERR! [email protected] start: `tsc && concurrently "npm run tsc:w 
" "npm run lite" ` 
npm ERR! Exit status 2 
npm ERR! 
npm ERR! Failed at the [email protected] start script 'tsc && concurr 
ently "npm run tsc:w" "npm run lite" '. 
npm ERR! Make sure you have the latest version of node.js and npm installed. 
npm ERR! If you do, this is most likely a problem with the DatabaseChecksFronten 
d package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  tsc && concurrently "npm run tsc:w" "npm run lite" 
npm ERR! You can get information on how to open an issue for this project with: 
npm ERR!  npm bugs DatabaseChecksFrontend 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!  npm owner ls DatabaseChecksFrontend 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  C:\DatabaseChecksFrontend\npm-debug.log 

답변

0

에서 찾을 수 있습니다. 당신은 NPM에서 다음과 같은 공식 문서에이 문제에 대한 자세한 내용을보실 수 있습니다 : npm permission issue

+0

'sudo'가 가장 좋습니다. –

0

앱 폴더에 ./check.component.ts, ./groups.component.ts, ./grid.component.ts./highlightcode.directive.ts라는 이름의 파일이 없습니다. 실제로 존재하는 모듈에서만 가져올 수 있습니다.

더러운 폴더가있어 개발에 도움이 될지도 모릅니다. 이 저장소를 다른 곳에서 복제하고 다시 실행하려고하면 실패합니다.

관련 문제