-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Description
Please provide us with the following information:
- OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Mac OS X Yosemite
- Versions. Please run
ng --version
. If there's nothing outputted, please
run in a Terminal:
node --version
And paste the result here.
node --version
v5.11.1
- Repro steps. Was this an app that wasn't created using the CLI? What change did you
do on your code? etc.
Fresh install of Node via NVM. Ran npm install -g angular-cli, completes without issue (just lodash warnings, no errors).
Unable to run ng --version, ng --help, or any other command without generating the below error.
- The log given by the failure. Normally this include a stack trace and some
more information.
/Users/josephpowers/.nvm/versions/node/v5.11.1/lib/node_modules/angular-cli/node_modules/ember-cli/lib/models/project.js:669
throw reason;
^
SyntaxError: /Users/josephpowers/package.json: Unexpected end of input
at Object.parse (native)
at Object.Module._extensions..json (module.js:430:27)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:20:19)
at Function.Project.getProjectRoot (/Users/josephpowers/.nvm/versions/node/v5.11.1/lib/node_modules/angular-cli/node_modules/ember-cli/lib/models/project.js:655:15)
at module.exports (/Users/josephpowers/.nvm/versions/node/v5.11.1/lib/node_modules/angular-cli/node_modules/ember-cli/lib/cli/index.js:51:22)
at module.exports (/Users/josephpowers/.nvm/versions/node/v5.11.1/lib/node_modules/angular-cli/lib/cli/index.js:102:10)
at /Users/josephpowers/.nvm/versions/node/v5.11.1/lib/node_modules/angular-cli/bin/ng:31:5
- Mention any other details that might be useful.
Thanks! We'll be in touch soon.
Metadata
Metadata
Assignees
Labels
No labels