2017-12-10 6 views
0

나는 NPM과 설치 웹팩과 바벨에 싶었지만

여기
npm ERR! Unexpected end of JSON input while parsing near '...pdragon":"^0.7.0","to' npm ERR! A complete log of this run can be found in: 
npm ERR! A complete log of this run can be found in: 
npm ERR!  C:\Users\luchan.vladyslav\AppData\Roaming\npm-cache\_logs\2017-12-10T10_48_56_298Z-debug.log 

가에서 내 package.json웹팩 설치 문제

{ 
    "name": "ddd", 
    "version": "1.0.0", 
    "description": "components", 
    "main": "index.js", 
    "scripts": { 
    "test": "echo \"Error: no test specified\" && exit 1" 
    }, 
    "author": "", 
    "license": "ISC", 
    "devDependencies": { 
    "babel-core": "^6.26.0", 
    "babel-loader": "^7.1.2", 
    "babel-preset-env": "^1.6.1" 
    } 
} 

입니다이 오류가 발생했습니다 내가 webpack webpack-dev-server babel-core babel-loader와 babel-preset-env를 설치하려고 시도했습니다. 한 줄. 잠시 동안 나는 그 문제가 웹팩 및

screenshot

+0

가 수행 문제를 해결할 수는

npm cache clean --force 

으로 캐시를 청소해야이 문제를 해결하려면? – dferenc

+0

dferner, 아니요. –

답변

0

당신이 당신의 JSON에 추가 콤마가없는

0

비난 할 수있는 손상 지역 node_modules 것 같은데 wepback-dev에 서버 관련이 알아 낸 후하지만,이 오류가 발생했습니다. 로컬 node_modules 폴더를 제거한 다음`npm install '을 통해 새로 설치할 수 있습니까? 그게 문제를 해결해야합니다.

+0

도움이되지 않았습니다. 동일한 오류 메시지가 나타납니다. –

+0

nodemon globaly도 설치할 수 없습니다. –