Skip to content Skip to sidebar Skip to footer

Node.js Issue :: Angular Is Not Defined :: Cannot Fined Bower Packages :: Nodegyp Vs Python

Issue: after generating and starting my new jHipster API in the browser I got the following issue: Uncaught ReferenceError: angular is not defined Before the generation I installed

Solution 1:

Few advices for setting up your NodeJS environment on Windows:

  • don't install last NodeJS release, rather install the latest LTS release (Long Term Support)
  • don't use npm 3 yet
  • don't use deep project folder path (like "K:\work\HP_AIC_WebAdmin_Customization\workspace\aicwebadminapi\") as npm may hit Windows maximum path length for your node_modules content.
  • install Python 2.x not 3.x

Consider using nodist or another nvm-like tool to install node.

You must also solve the git error, bower needs git for some modules not found in npm registry. You must fix your environment by installing git and making sure that the 'git' command is available in your path before retrying 'bower install command'. Some git is correctly installed but cannot work because it is blocked by a corporate firewall.

You could also try to run a diagnostic tool like rff-doctor to test your environment for git, grunt, bower and node. Don't follow its recommendation about Ruby and SASS as JHipster does not require them (it uses libsass through grunt/gulp).

Post a Comment for "Node.js Issue :: Angular Is Not Defined :: Cannot Fined Bower Packages :: Nodegyp Vs Python"