node.js - 启动npm start 报错 ,怎么办
PHP中文网
PHP中文网 2017-04-17 16:16:19
0
3
663

verbose pkgid doracms@1.1.1
16 verbose cwd /Users/myjianyue/Desktop/projectsSpace/express/DoraCMS
17 error Darwin 16.4.0
18 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "start" "app.js"
19 error node v6.9.5
20 error npm v3.10.10
21 error code ELIFECYCLE
22 error doracms@1.1.1 start: node ./bin/www "app.js"
22 error Exit status 1
23 error Failed at the doracms@1.1.1 start script 'node ./bin/www "app.js"'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the doracms package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error node ./bin/www "app.js"
23 error You can get information on how to open an issue for this project with:
23 error npm bugs doracms
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls doracms
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

PHP中文网
PHP中文网

认证0级讲师

모든 응답(3)
小葫芦

npm 공식 홈페이지(공식 홈페이지 링크)에서 npm start에 대한 설명을 게시하세요:

즉,
npm start는 기본적으로 "start" 필드 값이 있는 경우 package.json의 스크립트 개체 아래에 있는 "start" 필드에 해당하는 명령문을 실행합니다. 스크립트 객체인 npm 아래에 설정되어 있지 않습니다. 이 명령문은 기본적으로 실행됩니다:

으아악

먼저 package.json의 구성을 확인하여 스크립트 아래에 시작 필드가 있는지 확인하세요. 그렇지 않은 경우 해당 server.js 파일이 있는지 확인하세요.

小葫芦

최신 버전의 node.js와 npm이 설치되어 있는지 확인하세요.
그렇다면 npm 자체가 아니라 doracms 패키지에 문제가 있을 가능성이 높습니다. 작성자에게 이것이 실패한다고 알려주세요. 시스템에서:

这是上side错误提示

大家讲道理

package.json 파일 구성을 게시하세요.

최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿