Click here to Skip to main content
15,902,447 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: (untagged)
Hi Team,

i am facing one issue while i try to develop angular 4 with typescript application in VS2015. here is the issue which i got when restore the package.json


====Executing command 'npm install'====


npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v7.7.2
npm ERR! npm  v4.1.2
npm ERR! code ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR! syscall connect
npm ERR! Error: connect ECONNREFUSED 151.101.8.162:443
npm ERR!     at Object.exports._errnoException (util.js:1033:11)
npm ERR!     at exports._exceptionWithHostPort (util.js:1056:20)
npm ERR!     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1105:14)
npm ERR!  { Error: connect ECONNREFUSED 151.101.8.162:443
npm ERR!     at Object.exports._errnoException (util.js:1033:11)
npm ERR!     at exports._exceptionWithHostPort (util.js:1056:20)
npm ERR!     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1105:14)
npm ERR!   code: 'ECONNREFUSED',
npm ERR!   errno: 'ECONNREFUSED',
npm ERR!   syscall: 'connect',
npm ERR!   address: '151.101.8.162',
npm ERR!   port: 443,
npm ERR!   parent: 'helloworld' }
npm ERR! 
npm ERR! If you are behind a proxy, please make sure that the
npm ERR! 'proxy' config is set properly.  See: 'npm help config'
npm ERR! Please include the following file with any support request:
npm ERR!     D:\Manikandan\Project Demos\HelloWorldTypeScriptApplication\HelloWorldTypeScriptApplication\npm-debug.log

====npm command completed with exit code 1====


What I have tried:

{
	"version": "1.0.0",
	"name": "helloworld",
  "private": true,
  "description": "hellow world",
  "main": "Systemjs.config.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "MIT",
  "devDependencies": {
    "@types/node": "^8.0.56",
    "systemjs": "^0.20.19",
    "typescript": "^2.6.2"
  },
  "dependencies": {
    "@angular/common": "^5.1.0",
    "@angular/compiler": "^5.1.0",
    "@angular/compiler-cli": "^5.1.0",
    "@angular/core": "^5.1.0",
    "@angular/forms": "^5.1.0",
    "@angular/http": "^5.1.0"
  }
}
Posted
Updated 30-Jan-18 3:36am

1 solution

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