Click here to Skip to main content
15,887,175 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am developing a project using nodejs, angular 2 and mongoDB.
I will be using expressJs framework to create the basic structure and then finally will install the dependencies for angular 2 and mongoDB.

After running the command 'npm install express --save', when I am trying to run 'npm install', its showing error because package.json file is missing.

I would like to know if there is any process to create package.json, tsconfig.json, typings.json and systemjs.config.js, by running some commands?

I checked out in google and found that 'npm init' generates the package.json file for me. But, its not working as expected.

I cannot be able to proceed further

What I have tried:

Step I did till now:

1. created a folder named as 'Angular2_Proj'.
2. ran the command 'npm install express --save'
3. tried running 'npm install' but it requires 'package.json', so tried with step 4
4. tried running the command 'npm init' for generating package.json, but its not working, showing the following:
Press ^C at any time to quit.
name: (Angular2_Proj) <cursor blinking>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900