添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
冷静的酱牛肉  ·  Process.Start 方法 ...·  10 月前    · 
逼格高的跑步鞋  ·  [Solved] ...·  3 年前    · 
深情的砖头  ·  vs2010 ...·  3 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

npm WARN deprecated apollo-codegen@0.19.1: The 'apollo-codegen' command has been replaced with the more-powerful 'apollo' CLI. Switch to 'apollo' to ensure future updates and visit https://npm.im/apollo#code-ge neration for more information. npm ERR! Windows_NT 10.0.17134 npm ERR! argv "C:\Users\Ghita\Documents\android life\projects\cofe-app\app\.gradle\nodejs\node-v6.7.0-win-x64\node.exe"

"C:\Users\Ghita\Documents\android life\projects\cofe-app\app\.gradle\n odejs\node-v6.7.0-win-x64\node_modules\npm\bin\npm-cli.js" "install"

"apollo-codegen@0.19.1" "--save" "--save-exact" npm ERR! node v6.7.0 npm ERR! npm v3.10.3 npm ERR! file C:\Users\Ghita\AppData\Roaming\npm-cache\apollo-codegen\0.19.1\package\package.json npm ERR! code EJSONPARSE

npm ERR! Failed to parse json npm ERR! No data, empty input at 1:1 npm ERR! npm ERR! ^ npm ERR! File: C:\Users\Ghita\AppData\Roaming\npm-cache\apollo-codegen\0.19.1\package\package.json npm ERR! Failed to parse package.json data. npm ERR! package.json must be actual JSON, not just JavaScript. npm ERR! npm ERR! This is not a bug in npm. npm ERR! Tell the package author to fix their package.json file. JSON.parse

npm ERR! Please include the following file with any support request: npm ERR! C:\Users\Ghita\Documents\android life\projects\cofe-app\app\build\apollo-codegen\npm-debug.log

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:installApolloCodegen'.

    Process 'command 'C:\Users\Ghita\Documents\android life\projects\cofe-app\app.gradle\nodejs\node-v6.7.0-win-x64\node.exe'' finished with non-zero exit value 1

    Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • I've got this error when I try to build the project and I don't understand why package.json is empty. I have tried npm clean cache but with no result

    strange, I have manually deleted npm-cache from C:\Users\UserName\AppData\Roaming , and then I ran from android studio terminal apollo-codegen install task and it worked afterwards. ghita Aug 22, 2019 at 5:44 This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question . To get notified when this question gets new answers, you can follow this question . Once you have enough reputation , you can also add a bounty to draw more attention to this question. StevenSiebert Sep 2, 2021 at 6:22

    Thanks for contributing an answer to Stack Overflow!

    • Please be sure to answer the question . Provide details and share your research!

    But avoid

    • Asking for help, clarification, or responding to other answers.
    • Making statements based on opinion; back them up with references or personal experience.

    To learn more, see our tips on writing great answers .