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
–
–
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
.