0
votes

I have copied package.json and tsconfig.json from Official angular quick start

but node_modules is not getting downloaded. I'm receiving error as Cannot find module @angular/core when used in Component as follows

import { NgModule }      from '@angular/core';

Note : using Node.js version 6.7.0 and npm version 3.10.3 IDE : Visual Studio

1
what configuration you have in systemjs.config.js? - Pankaj Parkar
have you run npm install ? - ranakrunal9
I have run npm install but I see error as package.json file not found, it is expecting in thw place where we have sln file, but it will be inside our project , So as temporary solution I copied that there , Is There any solution for this? - sudhir

1 Answers

1
votes

You should trigger npm install in the same folder that your package.json file exists.