Visual Studio 2015打字稿应用程序包.json没有安装包 [英] Visual studio 2015 typescript application package.json not installing the package
本文介绍了Visual Studio 2015打字稿应用程序包.json没有安装包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hi Team,
我在VS2015尝试使用打字稿应用程序开发角度4时面临一个问题。这是我在恢复package.json时遇到的问题
====执行命令' npm install'====
npm ERR! Windows_NT 6.1.7601
npm ERR! argvC:\\Program Files \\\\
odejs\\\\
ode.exeC:\\Program Files \\\\
odejs \\\\
ode_modules \\\\
pm \\\ \\ bin \\\\
pm-cli.js安装
npm ERR!节点v7.7.2
npm ERR! npm v4.1.2
npm ERR!代码ECONNREFUSED
npm ERR! errno ECONNREFUSED
npm ERR!系统调用连接
npm ERR!错误:连接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! {错误:连接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!代码:'ECONNREFUSED',
npm ERR!错误:'ECONNREFUSED',
npm ERR!系统调用:'connect',
npm ERR!地址:'151.101.8.162',
npm ERR!端口:443,
npm ERR!父母:'helloworld'}
npm ERR!
npm ERR!如果您在代理服务器后面,请确保
npm ERR! 'proxy'配置设置正确。请参阅:'npm help config'
npm ERR!请在任何支持请求中包含以下文件:
npm ERR! D:\ Manikandan \ Project Demos \ HelloWorldTypeScriptApplication\HelloWorldTypeScriptApplication\\\
pm-debug.log
==== npm命令已完成,退出代码为1 ====
我的尝试:
{
version:1.0.0,
name:helloworld,
private:true,
description:hellow world ,
main:Systemjs.config.js,
脚本:{
test:echo \错误:没有测试指定\& &退出1
},
author:,
license:MIT,
devDependencies:{
@types / node:^ 8.0.56,
systemjs:^ 0.20.19,
typescript:^ 2.6.2
},
依赖:{
@ 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
}
}
解决方案
node.js - 错误的ERR!错误:连接ECONNREFUSED - 堆栈溢出 [ ^ ]
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" } }
解决方案
node.js - npm ERR! Error: connect ECONNREFUSED - Stack Overflow[^]
这篇关于Visual Studio 2015打字稿应用程序包.json没有安装包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文