Creating angular app in preferred version - node.js

I'm new to angular.
I'm creating an angular app using
ng new <app name>
but here I don't know how to specify the angular version and I don`t know how to check the angular version of the created app.
Can anyone help me in finding a solution for this.

You can find the angular version in your package.json file:
You can also change the version of all or of specific packages here, and then rerun npm install to install your specified version.

In package.json of your project you will find the current angular version you are using it in your project.
Also you can go through below link for knowing much in details
https://angular.io/guide/quickstart

Related

NPM not installing node module

I have an angular project that comes with a package.json file and all the dependencies listed within, but each time I run "npm install", in the terminal, the packages appear to be downloading properly and a node module folder is created in my root folder, but at a certain stage the installation stops without an error message and the generated node module folder disappear from my project. please what do I do?
I can't reproduce your situation, somehow this may not fitable for you.
But I suggest re-install node.js to make sure npm install work correctly.
This link will help to find what version of node.js for you, based on you angular version.
Compatibility list for Angular/Angular-CLI and Node.js
Also, It would be good to manage node.js via NVM(Node Version Manager).

React Native project does not run

When I create new project in React Native and trying to run in android emulator then it returns error. Whats the problem i can't understand.
compare your package.json file of new created project and older project. in package.json file change all react native version of new projects to older projects. then delete node_modules folder and run npm install. then run the new project. I think it should work.
There seems to be some issue with latest react native version.
Create the project with below command.
react-native init --version="0.54.0" ProjectName

Failed to create node.js Express with Sass

I'm trying to build my first project of node.js Express server.
I'm using WebStorm IDE witch give me options to select a CSS engine. I try to select Sass and while the initializing the project I'm getting the following error:
This is only happening when I pick Sass. On every other option (plain CSS, Stylus, Less, Compass) it work's fine.
How can I fix this issue and use Sass (or SCSS) in my project?
My versions:
WebStorm: 2017.1.2
npm 5.2.0
node 8.1.4
express 4.15.0
Thank in advance.
Do you have sass installed? Because it seems like you need to run
npm install node-sass
for it to be able to work
I've opened an issue on git and they helped me there..
I needed to update my node-sass package to the latest one (4.5.3).
Thanks all!

Can I upgrade my Sails project to a new version of nodejs? If possible, how do I do it?

I have a project in sails with nodejs version 0.12.7 I would like to update my project to node 7.0.0
You shouldn't have to upgrade your project. You just need to upgrade Node. Here's a tutorial on how to install a new version of Node alongside the old version, so that if anything doesn't work with the new one, you can switch to the old one.
I'd suggest copying the project to some other place, cleaning node_modules and doing npm install to see how it works.
You may get problems with new versions of npm modules if their API changed so you may need to specify exact versions of modules that are known to work in your package.json.

Meteor: Cannot find module 'angular'

I'm newbie on Meteor.
After one week on it, and started by implementing the todo of the tutorial as describe here, every things was good locally.
just the fact that I'm continually trying to deploy it, but my heroku
link(https://tasktor.herokuapp.com) just show a blank page with
the this error in de debugger:
Error: angular#^1.2.27 not installed. tmeasday_check-npm-versions.js:66:11
Error: Cannot find module 'angular'
Note that everything is clean on http://localhost:3000.
Already try a lot of solutions, as:
meteor add angular
meteor npm install --save angular
Disable minification of Js and Css.
This is the repository of this app deployed to heroku: https://github.com/dassiorleando/tasktor
his buildpack: https://github.com/dassiorleando/heroku-buildpack-meteor,
it is a buildpack with an updated Node Engine(4.5.0), that allowed to run an app with the meteor 1.4.X version.
Knowing that I add Angular-Material after finish this tutorial, because I wanted to have a clean material design style on my todo. You can check the repository to look about.
How can I handle this situation ?
Thanks in advance.
Doing this:
meteor add angular
Adds an old atmosphere angular-meteor package, which also refers to an old (1.2.27) version of angular. The best way to proceed is to remove this and just use angular npm packages. You will need these packages
pbastowski:angular-babel
urigo:static-templates
dotansimha:accounts-ui-angular
The last one is if you are using the accounts package.
The tutorial at https://www.angular-meteor.com/tutorials/socially/angular1/bootstrapping recommends this:
So let's remove it by running:
$ meteor remove blaze-html-templates
$ meteor remove ecmascript
Now let's add the Angular 1 package to Meteor, back in the command
line, launch this command:
$ meteor npm install --save angular angular-meteor babel-runtime
$ meteor add angular-templates pbastowski:angular-babel
That's it! Now we can use Angular 1's power in our Meteor app.

Resources