2016-06-28 8 views
0

npm을 시작하지만 오류가 표시됩니다. 수정을 모릅니다. 도와주세요 저npm이 시작되지만 오류가 표시됩니다.

"D:\PhpStorm 2016.1.2\bin\runnerw.exe" D:\nodejs\node.exe D:\nodejs\node_modules\npm\bin\npm-cli.js run-script start 

> [email protected] start E:\phong.pham\Developer\phpDev\pickuphub.net 
> npm run start:tunnel 


> [email protected] start:tunnel E:\phong.pham\Developer\phpDev\pickuphub.net 
> cross-env NODE_ENV=development node internals/server 

CarteBlanche started at /carte-blanche 
Server started ✓ 


Access URLs: 
----------------------------------- 
Localhost: http://localhost:3000 
     LAN: http://192.168.0.107:3000 
----------------------------------- 
Press CTRL-C to stop 

오류 :

Uncaught Exception... 
TypeError: d.getWarnings is not a function 
    at E:\phong.pham\Developer\phpDev\pickuphub.net\node_modules\webpack\lib\Compilation.js:594:21 
    at Array.forEach (native) 
    at E:\phong.pham\Developer\phpDev\pickuphub.net\node_modules\webpack\lib\Compilation.js:593:22 
    at Array.forEach (native) 
    at Compilation.reportDependencyWarnings (E:\phong.pham\Developer\phpDev\pickuphub.net\node_modules\webpack\lib\Compilation.js:592:9) 
    at Compilation.<anonymous> (E:\phong.pham\Developer\phpDev\pickuphub.net\node_modules\webpack\lib\Compilation.js:483:8) 
    at Array.forEach (native) 
    at Compilation.seal (E:\phong.pham\Developer\phpDev\pickuphub.net\node_modules\webpack\lib\Compilation.js:482:15) 
    at Compiler.<anonymous> (E:\phong.pham\Developer\phpDev\pickuphub.net\node_modules\webpack\lib\Compiler.js:431:15) 
    at E:\phong.pham\Developer\phpDev\pickuphub.net\node_modules\webpack\node_modules\tapable\lib\Tapable.js:152:11 
Uncaught Exception... 
undefined 

오류 :
NPM의 ERR! Windows_NT 10.0.10586 npm ERR! argv "D : \ nodejs \ node.exe" "C : \ Users \ phamv \ AppData \ Roaming \ npm \ node_modules \ npm \ bin \ npm-cli.js" "run" "start : tunnel" npm ERR! 노드 v4.4.5 npm ERR! npm v3.9.6 npm ERR! 코드 ELIFECYCLE npm ERR! [email protected] 시작 : 터널 : cross-env NODE_ENV=development node internals/server npm ERR! 종료 상태 1 npm ERR! npm ERR! [email protected] 시작에서 실패했습니다 : 터널 스크립트 'cross-env NODE_ENV = 개발 노드 내부/서버'. npm ERR! node.js와 npm의 최신 버전이 설치되어 있는지 확인하십시오. npm ERR! 그렇다면 픽업 패키지의 문제 일 가능성이 높습니다. npm ERR! npm 자체가 아닙니다. npm ERR! 시스템에 오류가 발생했음을 작성자에게 알려주십시오. npm ERR! cross-env NODE_ENV = 개발 노드 내부/서버 npm ERR! 다음 프로젝트로이 프로젝트의 문제점을 여는 방법에 대한 정보를 얻을 수 있습니다 : npm ERR! npm 버그 픽업 npm ERR! 또는 사용할 수없는 경우 다음을 통해 정보를 얻을 수 있습니다. npm ERR! npm 소유자 ls pickuphub npm ERR! 위의 추가 로깅 출력이있을 수 있습니다.

npm ERR! Please include the following file with any support request: 
    npm ERR!  E:\phong.pham\Developer\phpDev\pickuphub.net\npm-debug.log 

    npm ERR! Windows_NT 10.0.10586 
    npm ERR! argv "D:\\nodejs\\node.exe" "D:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run-script" "start" 
    npm ERR! node v4.4.5 
    npm ERR! npm v2.15.5 
    npm ERR! code ELIFECYCLE 
    npm ERR! [email protected] start: `npm run start:tunnel` 
    npm ERR! Exit status 1 
    npm ERR! 
    npm ERR! Failed at the [email protected] start script 'npm run start:tunnel'. 
    npm ERR! This is most likely a problem with the pickuphub package, 
    npm ERR! not with npm itself. 
    npm ERR! Tell the author that this fails on your system: 
    npm ERR!  npm run start:tunnel 
    npm ERR! You can get information on how to open an issue for this project with: 
    npm ERR!  npm bugs pickuphub 
    npm ERR! Or if that isn't available, you can get their info via: 
    npm ERR! 
    npm ERR!  npm owner ls pickuphub 
    npm ERR! There is likely additional logging output above. 

    npm ERR! Please include the following file with any support request: 
    npm ERR!  E:\phong.pham\Developer\phpDev\pickuphub.net\npm-debug.log 

    Process finished with exit code 1 

i begin learn reactjs and using nodejs . please help me 
package.json 
{ 
    "name": "pickuphub", 
    "version": "0.3.0", 
    "private": true, 
    "dllPlugin": { 
    "path": "node_modules/pickuphub-dlls", 
    "exclude": [ 
     "sanitize.css" 
    ], 
    "include": [ 
     "babel-polyfill", 
     "core-js", 
     "eventsource-polyfill", 
     "lodash" 
    ] 
    }, 
    "dependencies": { 
    "angle-input": "git+https://github.com/hosmelq/angle-input.git", 
    "babel-polyfill": "^6.9.1", 
    "classnames": "^2.2.5", 
    "date-fns": "^1.3.0", 
    "draft-js": "^0.7.0", 
    "elemental": "^0.5.14", 
    "history": "^3.0.0", 
    "humps": "^1.1.0", 
    "immutable": "^3.8.1", 
    "is-absolute-url": "^2.0.0", 
    "lodash-es": "^4.13.1", 
    "moment": "^2.13.0", 
    "normalizr": "^2.1.0", 
    "query-string": "^4.2.2", 
    "raven-js": "^3.1.0", 
    "rc-switch": "^1.4.2", 
    "rc-tooltip": "^3.3.5", 
    "react": "^15.1.0", 
    "react-addons-css-transition-group": "^15.1.0", 
    "react-addons-shallow-compare": "^15.1.0", 
    "react-dom": "^15.1.0", 
    "react-dropzone": "^3.5.1", 
    "react-highlighter": "^0.3.2", 
    "react-immutable-proptypes": "^1.7.1", 
    "react-masonry-component": "^4.0.4", 
    "react-modal": "^1.3.0", 
    "react-nl2br": "^0.1.1", 
    "react-redux": "^4.4.5", 
    "react-relay": "^0.9.0", 
    "react-router": "^2.5.0", 
    "react-router-redux": "^4.0.5", 
    "react-router-relay": "^0.13.3", 
    "react-router-scroll": "^0.2.0", 
    "react-select": "^1.0.0-beta9", 
    "react-slick": "^0.12.2", 
    "react-url": "^1.0.0", 
    "reactable": "^0.13.2", 
    "recompose": "^0.20.0", 
    "recompose-relay": "^0.3.0", 
    "redux": "^3.5.2", 
    "redux-api-middleware": "^1.0.2", 
    "redux-form": "^5.2.5", 
    "redux-immutable": "^3.0.6", 
    "redux-saga": "^0.10.5", 
    "reselect": "^2.5.1", 
    "sanitize.css": "^4.0.0", 
    "speakingurl": "^9.0.0", 
    "superagent": "^2.0.0", 
    "validator": "^5.4.0", 
    "whatwg-fetch": "^1.0.0" 
    }, 
    "devDependencies": { 
    "babel-core": "^6.10.4", 
    "babel-loader": "^6.2.4", 
    "babel-plugin-react-relay": "^0.9.0", 
    "babel-plugin-transform-react-constant-elements": "^6.9.1", 
    "babel-plugin-transform-react-inline-elements": "^6.8.0", 
    "babel-plugin-transform-react-pure-class-to-function": "^1.0.1", 
    "babel-plugin-transform-react-remove-prop-types": "^0.2.7", 
    "babel-plugin-transform-runtime": "^6.9.0", 
    "babel-preset-es2015": "^6.9.0", 
    "babel-preset-es2015-webpack": "^6.4.1", 
    "babel-preset-react": "^6.5.0", 
    "babel-preset-react-hmre": "^1.1.1", 
    "babel-preset-stage-0": "^6.5.0", 
    "babel-runtime": "^6.9.2", 
    "bootstrap": "github:twbs/bootstrap#v4-dev", 
    "bootstrap-datepicker": "^1.6.1", 
    "carte-blanche": "^0.2.3", 
    "carte-blanche-react-plugin": "^0.2.2", 
    "carte-blanche-source-plugin": "^0.1.0", 
    "chalk": "^1.1.3", 
    "chart.js": "^1.1.1", 
    "compression": "^1.6.2", 
    "cross-env": "^1.0.8", 
    "css-loader": "^0.23.1", 
    "enzyme": "^2.3.0", 
    "eonasdan-bootstrap-datetimepicker": "^4.15.35", 
    "eventsource-polyfill": "^0.9.6", 
    "expect": "^1.20.1", 
    "expect-jsx": "^2.6.0", 
    "exports-loader": "^0.6.3", 
    "expose-loader": "^0.7.1", 
    "express": "^4.14.0", 
    "extract-text-webpack-plugin": "^1.0.1", 
    "fastclick": "^1.0.6", 
    "file-loader": "^0.9.0", 
    "font-awesome": "^4.6.3", 
    "gmaps": "^0.4.24", 
    "gulp": "^3.9.1", 
    "handlebars": "^4.0.5", 
    "highcharts": "^4.2.5", 
    "hint.css": "^2.3.1", 
    "image-webpack-loader": "^1.8.0", 
    "imports-loader": "^0.6.5", 
    "ip": "^1.1.3", 
    "jquery": "^2.2.4", 
    "jquery-ui-touch-punch": "^0.2.3", 
    "jquery.maskedinput": "^1.4.1", 
    "json-loader": "^0.5.4", 
    "laravel-elixir": "^6.0.0-4", 
    "laravel-elixir-uncss": "^2.1.0", 
    "material-design-icons": "^2.2.3", 
    "minimist": "^1.2.0", 
    "ngrok": "^2.2.1", 
    "normalize.css": "^4.1.1", 
    "offline-plugin": "^3.4.0", 
    "plop": "^1.5.0", 
    "postcss-cssnext": "^2.6.0", 
    "postcss-focus": "^1.0.0", 
    "postcss-import": "8.1.0", 
    "postcss-loader": "^0.9.1", 
    "postcss-reporter": "^1.3.3", 
    "progressbar.js": "^1.0.1", 
    "raw-loader": "^0.5.1", 
    "rc-slider": "^3.7.2", 
    "react-bootstrap-table": "^2.3.6", 
    "react-motion": "^0.4.4", 
    "rimraf": "^2.5.2", 
    "select2": "^4.0.3", 
    "select2-bootstrap-theme": "0.1.0-beta.7", 
    "shelljs": "^0.7.0", 
    "style-loader": "^0.13.1", 
    "sw-precache": "^3.2.0", 
    "sweetalert": "^1.1.3", 
    "twitter-bootstrap-wizard": "^1.2.0", 
    "url-loader": "^0.5.7", 
    "webpack": "^2.1.0-beta.13", 
    "webpack-dev-middleware": "^1.6.1", 
    "webpack-hot-middleware": "^2.10.0", 
    "webpack-manifest-plugin": "^1.0.1", 
    "why-did-you-update": "0.0.8" 
    }, 
    "engines": { 
    "npm": ">=3" 
    }, 
    "react-relay-schema": "http://api.pickuphub.net/schema.json", 
    "scripts": { 
    "analyze": "node ./internals/scripts/analyze.js", 
    "build": "npm run build:clean && npm run build:webpack && npm run build:gulp", 
    "build:clean": "rimraf ./web/build-webpack/*", 
    "build:dll": "node ./internals/scripts/dependencies.js", 
    "build:gulp": "gulp --production", 
    "build:webpack": "cross-env NODE_ENV=production webpack --config internals/webpack/webpack.prod.babel.js --bail --color", 
    "generate": "plop --plopfile internals/generators/index.js", 
    "npmcheckversion": "node ./internals/scripts/npmcheckversion.js", 
    "postinstall": "npm run build:dll", 
    "postsetup": "npm run build:dll", 
    "preinstall": "npm run npmcheckversion", 
    "start": "npm run start:tunnel", 
    "start:tunnel": "cross-env NODE_ENV=production node internals/server" 
    } 
} 
+0

npm을 실행하기 전에 npm install을 실행하십시오. run start : tunnel? 그 이외의 npm 버전은 꽤 오래된 것으로 보입니다. 수정이 필요한지 확인하기 위해 업데이트 할 가치가 있습니다. – derp

+0

시작 전에 실행 한 후 npm install을 실행합니다. 터널 쇼 오류 –

답변

0

내가 바로 전에 작업 괜찮다고 프로젝트에 "요리 - 위임장"을 추가 한 후 동일한 문제에 봉착했습니다. 콘솔에 오류가 표시되면 조사를 시작하려면 "node_modules/webpack/lib/Compilation.js"파일로 이동하여 "594"행으로 스크롤하십시오 (오류 메시지와 동일). 그런 다음이 라인 594에, 나는 파일을 조금 수정했습니다

if (!d.getWarnings) { 
    console.info('doh!', d.module.dependenciesErrors); 
} 

그럼 난 이미 조금 더 지금은 단지 "module.dependenciesErrors"를 출력하고있어 같이 해요,하지만 당신은 단순히으로 시작할 수 "d"를 출력합니다.

오류 메시지에서 "d.getWarnings"는 기능이 아닙니다! 오류 케이스와 "console.info"를 감지 할 수 있다면 조사를 시작할 수 있습니다.

하지만 지금 :

지금 난 여전히 모든 "D"가 갑자기 아니오 "getWarnings 메소드"기능 이상, 다른 모든 디부 분명히이야 그것 (P 또는 웹팩 컴파일이 일을하지 못했을 것) 한 곳이 왜 단서가 없다 마침내 오류를 일으키는 원인이 무엇인지 알기 시작했습니다.> 장바구니 - 블랜치가 일부 폴더를 찾지 못했습니다 .- 매우 귀찮아서 콘솔에보고 할 수 없습니다.

이 "d.getWarnings은 함수가 아닙니다"라고 생각하십시오. 가능한 모든 종속성 문제/오류가 발생할 수 있습니다.이 명령은 carte-blanche 또는 여기 언급 된 터널 스크립트와 직접 관련되지 않습니다. 내 생각에 모든 것 웹 패키지 프로젝트에서 종속성을 빌드하는 동안 문제가 발생할 수 있습니다.

관련 문제