Angular 2 npm install error : (node:3240)
Angular 2 npm install error : (node:3240)
嘿,我正在尝试从 this GitHub 存储库中制作一个 MEAN 2.0 示例。
Npm install
在服务器文件夹上工作正常但是当我在客户端文件夹上执行 npm install
(Angular 2) 我得到这个:
mytasklist@1.0.0 postinstall C:\wamp\Projects\mean_mytasklist\client
typings install
typings WARN deprecated 9/14/2016: "registry:dt/core-js#0.0.0+20160725163759" is deprecated (upda ted, replaced or removed)
typings WARN deprecated 11/21/2016: "registry:dt/node#6.0.0+20160909174046" is deprecated (update d, replaced or removed)
typings WARN deprecated 10/25/2016: "registry:dt/jasmine#2.2.0+20160621224255" is deprecated (upd ated, replaced or removed)
(node:3240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Pops icleError: Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyType d/c49913aa9ea419ea46c1c684e488cf2a10303b1a/jasmine/jasmine.d.ts"
Caused by: Error: connect ECONNREFUSED 10.10.34.36:443
(node:3240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Pops icleError: Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyType d/4008a51db44dabcdc368097a39a01ab7a5f9587f/node/node.d.ts"
Caused by: Error: connect ECONNREFUSED 10.10.34.36:443
(node:3240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): Pops icleError: Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyType d/25e18b592470e3dddccc826fde2bb8e7610ef863/core-js/core-js.d.ts"
Caused by: Error: connect ECONNREFUSED 10.10.34.36:443
(node:3240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): Pops icleError: Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyType d/c49913aa9ea419ea46c1c684e488cf2a10303b1a/jasmine/jasmine.d.ts"
Caused by: Error: connect ECONNREFUSED 10.10.34.36:443
(node:3240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 5): Pops icleError: Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyType d/c49913aa9ea419ea46c1c684e488cf2a10303b1a/jasmine/jasmine.d.ts"
Caused by: Error: connect ECONNREFUSED 10.10.34.36:443
(node:3240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 6): Pops icleError: Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyType d/4008a51db44dabcdc368097a39a01ab7a5f9587f/node/node.d.ts"
Caused by: Error: connect ETIMEDOUT 10.10.34.36:443
(node:3240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 7): Pops icleError: Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyType d/25e18b592470e3dddccc826fde2bb8e7610ef863/core-js/core-js.d.ts"
Caused by: Error: connect ETIMEDOUT 10.10.34.36:443
(node:3240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 8): Pops icleError: Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyType d/c49913aa9ea419ea46c1c684e488cf2a10303b1a/jasmine/jasmine.d.ts"
Caused by: Error: connect ECONNREFUSED 10.10.34.36:443
(node:3240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 9): Pops icleError: Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyType d/4008a51db44dabcdc368097a39a01ab7a5f9587f/node/node.d.ts"
Caused by: Error: connect ECONNREFUSED 10.10.34.36:443
(node:3240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 10): PopsicleError: Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/25e18b592470e3dddccc826fde2bb8e7610ef863/core-js/core-js.d.ts"
Caused by: Error: connect ETIMEDOUT 10.10.34.36:443
(node:3240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 11): PopsicleError: Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/c49913aa9ea419ea46c1c684e488cf2a10303b1a/jasmine/jasmine.d.ts"
Caused by: Error: connect ECONNREFUSED 10.10.34.36:443
(node:3240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 12): PopsicleError: Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/25e18b592470e3dddccc826fde2bb8e7610ef863/core-js/core-js.d.ts"
Caused by: Error: connect ECONNREFUSED 10.10.34.36:443
(node:3240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 13): PopsicleError: Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/4008a51db44dabcdc368097a39a01ab7a5f9587f/node/node.d.ts"
Caused by: Error: connect ETIMEDOUT 10.10.34.36:443
(node:3240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14): PopsicleError: Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/25e18b592470e3dddccc826fde2bb8e7610ef863/core-js/core-js.d.ts"
Caused by: Error: connect ECONNREFUSED 10.10.34.36:443
typings ERR! message Unable to read typings for "jasmine". You should check the entry paths in "jasmine.d.ts" are up to date
typings ERR! caused by Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/c49913aa9ea419ea46c1c684e488cf2a10303b1a/jasmine/jasmine.d.ts"
typings ERR! caused by connect ECONNREFUSED 10.10.34.36:443
typings ERR! cwd C:\wamp\Projects\mean_mytasklist\client
typings ERR! system Windows_NT 6.1.7601
typings ERR! command "C:\Program Files\nodejs\node.exe" "C:\wamp\Projects\mean_mytasklist\client\node_modules\typings\dist\bin.js" "install"
typings ERR! node -v v6.9.1
typings ERR! typings -v 1.4.0
typings ERR! If you need help, you may report this error at:
typings ERR! <https://github.com/typings/typings/issues>
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.15: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN mytasklist@1.0.0 No description
npm WARN mytasklist@1.0.0 No repository field.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\Mojtaba\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v6.9.1
npm ERR! npm v4.0.1
npm ERR! code ELIFECYCLE
npm ERR! mytasklist@1.0.0 postinstall: `typings install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mytasklist@1.0.0 postinstall script 'typings install'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the mytasklist package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! typings install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs mytasklist
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls mytasklist
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\wamp\Projects\mean_mytasklist\client\npm-debug.log
尝试了 npm install
使用和不使用代理,但都不起作用。看起来像是打字的问题。我该怎么办?
node v6.9.1
npm v4.0.1
如上所述,如果需要日志文件,我也会上传。
从 client
文件夹中删除 typings.json
,并从 client/package.json
文件中删除行 "postinstall": "typings install",
。在您的 client/package.json
中添加下面的树线:
"@types/node": "^6.0.46",
"@types/jasmine": "^2.5.36",
"@types/selenium-webdriver": "^2.53.33"
它给你错误,因为之前要安装 TypeScript 声明文件,我们必须使用我们在 typings.json
文件中定义的 NuGet 安装 DefinitelyTyped
包,但现在我们需要安装 @types
基于 npm
模块来安装 TypeScript 声明。在 Angular 2 with @types declaration files. You can find other @types
modules list at npmjs on Packages by types
查看更多详细信息
嘿,我正在尝试从 this GitHub 存储库中制作一个 MEAN 2.0 示例。
Npm install
在服务器文件夹上工作正常但是当我在客户端文件夹上执行 npm install
(Angular 2) 我得到这个:
mytasklist@1.0.0 postinstall C:\wamp\Projects\mean_mytasklist\client
typings install
typings WARN deprecated 9/14/2016: "registry:dt/core-js#0.0.0+20160725163759" is deprecated (upda ted, replaced or removed)
typings WARN deprecated 11/21/2016: "registry:dt/node#6.0.0+20160909174046" is deprecated (update d, replaced or removed)
typings WARN deprecated 10/25/2016: "registry:dt/jasmine#2.2.0+20160621224255" is deprecated (upd ated, replaced or removed)
(node:3240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Pops icleError: Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyType d/c49913aa9ea419ea46c1c684e488cf2a10303b1a/jasmine/jasmine.d.ts"
Caused by: Error: connect ECONNREFUSED 10.10.34.36:443
(node:3240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Pops icleError: Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyType d/4008a51db44dabcdc368097a39a01ab7a5f9587f/node/node.d.ts"
Caused by: Error: connect ECONNREFUSED 10.10.34.36:443
(node:3240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): Pops icleError: Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyType d/25e18b592470e3dddccc826fde2bb8e7610ef863/core-js/core-js.d.ts"
Caused by: Error: connect ECONNREFUSED 10.10.34.36:443
(node:3240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): Pops icleError: Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyType d/c49913aa9ea419ea46c1c684e488cf2a10303b1a/jasmine/jasmine.d.ts"
Caused by: Error: connect ECONNREFUSED 10.10.34.36:443
(node:3240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 5): Pops icleError: Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyType d/c49913aa9ea419ea46c1c684e488cf2a10303b1a/jasmine/jasmine.d.ts"
Caused by: Error: connect ECONNREFUSED 10.10.34.36:443
(node:3240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 6): Pops icleError: Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyType d/4008a51db44dabcdc368097a39a01ab7a5f9587f/node/node.d.ts"
Caused by: Error: connect ETIMEDOUT 10.10.34.36:443
(node:3240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 7): Pops icleError: Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyType d/25e18b592470e3dddccc826fde2bb8e7610ef863/core-js/core-js.d.ts"
Caused by: Error: connect ETIMEDOUT 10.10.34.36:443
(node:3240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 8): Pops icleError: Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyType d/c49913aa9ea419ea46c1c684e488cf2a10303b1a/jasmine/jasmine.d.ts"
Caused by: Error: connect ECONNREFUSED 10.10.34.36:443
(node:3240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 9): Pops icleError: Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyType d/4008a51db44dabcdc368097a39a01ab7a5f9587f/node/node.d.ts"
Caused by: Error: connect ECONNREFUSED 10.10.34.36:443
(node:3240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 10): PopsicleError: Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/25e18b592470e3dddccc826fde2bb8e7610ef863/core-js/core-js.d.ts"
Caused by: Error: connect ETIMEDOUT 10.10.34.36:443
(node:3240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 11): PopsicleError: Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/c49913aa9ea419ea46c1c684e488cf2a10303b1a/jasmine/jasmine.d.ts"
Caused by: Error: connect ECONNREFUSED 10.10.34.36:443
(node:3240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 12): PopsicleError: Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/25e18b592470e3dddccc826fde2bb8e7610ef863/core-js/core-js.d.ts"
Caused by: Error: connect ECONNREFUSED 10.10.34.36:443
(node:3240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 13): PopsicleError: Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/4008a51db44dabcdc368097a39a01ab7a5f9587f/node/node.d.ts"
Caused by: Error: connect ETIMEDOUT 10.10.34.36:443
(node:3240) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14): PopsicleError: Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/25e18b592470e3dddccc826fde2bb8e7610ef863/core-js/core-js.d.ts"
Caused by: Error: connect ECONNREFUSED 10.10.34.36:443
typings ERR! message Unable to read typings for "jasmine". You should check the entry paths in "jasmine.d.ts" are up to date
typings ERR! caused by Unable to connect to "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/c49913aa9ea419ea46c1c684e488cf2a10303b1a/jasmine/jasmine.d.ts"
typings ERR! caused by connect ECONNREFUSED 10.10.34.36:443
typings ERR! cwd C:\wamp\Projects\mean_mytasklist\client
typings ERR! system Windows_NT 6.1.7601
typings ERR! command "C:\Program Files\nodejs\node.exe" "C:\wamp\Projects\mean_mytasklist\client\node_modules\typings\dist\bin.js" "install"
typings ERR! node -v v6.9.1
typings ERR! typings -v 1.4.0
typings ERR! If you need help, you may report this error at:
typings ERR! <https://github.com/typings/typings/issues>
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.0.15: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN mytasklist@1.0.0 No description
npm WARN mytasklist@1.0.0 No repository field.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\Mojtaba\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v6.9.1
npm ERR! npm v4.0.1
npm ERR! code ELIFECYCLE
npm ERR! mytasklist@1.0.0 postinstall: `typings install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mytasklist@1.0.0 postinstall script 'typings install'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the mytasklist package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! typings install
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs mytasklist
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls mytasklist
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\wamp\Projects\mean_mytasklist\client\npm-debug.log
尝试了 npm install
使用和不使用代理,但都不起作用。看起来像是打字的问题。我该怎么办?
node v6.9.1 npm v4.0.1
如上所述,如果需要日志文件,我也会上传。
从 client
文件夹中删除 typings.json
,并从 client/package.json
文件中删除行 "postinstall": "typings install",
。在您的 client/package.json
中添加下面的树线:
"@types/node": "^6.0.46",
"@types/jasmine": "^2.5.36",
"@types/selenium-webdriver": "^2.53.33"
它给你错误,因为之前要安装 TypeScript 声明文件,我们必须使用我们在 typings.json
文件中定义的 NuGet 安装 DefinitelyTyped
包,但现在我们需要安装 @types
基于 npm
模块来安装 TypeScript 声明。在 Angular 2 with @types declaration files. You can find other @types
modules list at npmjs on Packages by types