Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install报错 #2

Open
cm971991 opened this issue Jul 31, 2018 · 8 comments
Open

npm install报错 #2

cm971991 opened this issue Jul 31, 2018 · 8 comments

Comments

@cm971991
Copy link

13523 silly saveTree `-- yargs-parser@7.0.0
13524 warn dog-music@0.1.0 No repository field.
13525 warn dog-music@0.1.0 No license field.
13526 verbose stack SyntaxError: Unexpected end of JSON input while parsing near '....2"},"modified":"2015'
13526 verbose stack at JSON.parse ()
13526 verbose stack at parseJson (C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\node-fetch-npm\node_modules\json-parse-better-errors\index.js:7:17)
13526 verbose stack at consumeBody.call.then.buffer (C:\Program Files\nodejs\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\node-fetch-npm\src\body.js:96:50)
13526 verbose stack at
13526 verbose stack at process._tickCallback (internal/process/next_tick.js:188:7)
13527 verbose cwd E:\code\demo\electron-vue-music
13528 verbose Windows_NT 10.0.17134
13529 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install"
13530 verbose node v8.11.2
13531 verbose npm v5.6.0
13532 error Unexpected end of JSON input while parsing near '....2"},"modified":"2015'
13533 verbose exit [ 1, true ]

@fakaka
Copy link

fakaka commented Sep 10, 2018

用 yarn 试试

@zpccode
Copy link

zpccode commented Sep 11, 2018

推荐用cnpm

@jiaoyinheshaoxu
Copy link

个人推荐用 yarn , cnpm 也可以

@wedreamer
Copy link

cnpm 就好啦

@hsj-xiaokang
Copy link

删除依赖重试几次就OK了

@waterone
Copy link

请问一下npm install 之后它会下载一个electron-v1.8.7-win32-x64.zip的吗?

@SUNbrightness
Copy link

cnpm 好使!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants