question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error after installation

See original GitHub issue

Please provide us with the following information:

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)

Mac OS X Yosemite

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

  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.

  1. 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
  1. Mention any other details that might be useful.

    Thanks! We’ll be in touch soon.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

4reactions
nanomoffetcommented, Jun 10, 2016

Somehow an empty package.json was initialized in the home directory which was conflicting with it. Once I deleted that file, it started working fine.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 6, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to troubleshoot Windows Installer errors - Microsoft Support
Identify Windows Installer issues · Click Start, click Run, type cmd, and then click Command Prompt. · At the command prompt, type the...
Read more >
If an error occurred while updating or installing macOS
The message might say that an error occurred while downloading, preparing, or installing, or that the installer is damaged or could not be ......
Read more >
[SOLVED] Windows 10 Could Not Complete the Installation + ...
If you have received an error message that says Windows 10 could not complete the installation after updating your operating system, you can...
Read more >
[SOLVED] Windows 10 Installation Has Failed - Driver Easy
The “Windows 10 installation has failed” error is one of the most reported errors that users get when they try to install Windows...
Read more >
How to Fix "Windows 10 Installation has Failed" Error? - Appuals
In some instances, the Windows 10 installer may attempt to overwrite (copy) the installation files in a folder named $WINDOWS.~BT on your local ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found