Node.js Angular2 npm安装错误(节点gyp重建)

Node.js Angular2 npm安装错误(节点gyp重建),node.js,npm,angular,npm-install,Node.js,Npm,Angular,Npm Install,我最近开始学习新的Angular2教程。我被提供了一个angular2种子文件夹作为项目文件的一部分,但当尝试在项目文件夹中安装依赖项时,我遇到以下错误: D:\Angular.JS\angular2-seed>npm install > bufferutil@1.2.1 install D:\Angular.JS\angular2-seed\node_modules\bufferutil > node-gyp rebuild D:\Angular.JS\angular2

我最近开始学习新的Angular2教程。我被提供了一个angular2种子文件夹作为项目文件的一部分,但当尝试在项目文件夹中安装依赖项时,我遇到以下错误:

D:\Angular.JS\angular2-seed>npm install

> bufferutil@1.2.1 install D:\Angular.JS\angular2-seed\node_modules\bufferutil
> node-gyp rebuild


D:\Angular.JS\angular2-seed\node_modules\bufferutil>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" re
build )  else (node "" rebuild )
Traceback (most recent call last):
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py", line 13, in <module>
    import gyp
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 8, in <module>
    import gyp.input
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\input.py", line 15, in <module>
    import multiprocessing
  File "C:\Python27\lib\multiprocessing\__init__.py", line 84, in <module>
    import _multiprocessing
ImportError: DLL load failed: %1 n’est pas une application Win32 valide.
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:305:16)
gyp ERR! stack     at emitTwo (events.js:100:13)
gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\Angular.JS\angular2-seed\node_modules\bufferutil
gyp ERR! node -v v5.7.1
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok
npm WARN install:bufferutil@1.2.1 bufferutil@1.2.1 install: `node-gyp rebuild`
npm WARN install:bufferutil@1.2.1 Exit status 1

> utf-8-validate@1.2.1 install D:\Angular.JS\angular2-seed\node_modules\utf-8-validate
> node-gyp rebuild


D:\Angular.JS\angular2-seed\node_modules\utf-8-validate>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js
" rebuild )  else (node "" rebuild )
Traceback (most recent call last):
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py", line 13, in <module>
    import gyp
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\__init__.py", line 8, in <module>
    import gyp.input
  File "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\gyp\pylib\gyp\input.py", line 15, in <module>
    import multiprocessing
  File "C:\Python27\lib\multiprocessing\__init__.py", line 84, in <module>
    import _multiprocessing
ImportError: DLL load failed: %1 n’est pas une application Win32 valide.
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:305:16)
gyp ERR! stack     at emitTwo (events.js:100:13)
gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\Angular.JS\angular2-seed\node_modules\utf-8-validate
gyp ERR! node -v v5.7.1
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok
npm WARN install:utf-8-validate@1.2.1 utf-8-validate@1.2.1 install: `node-gyp rebuild`
npm WARN install:utf-8-validate@1.2.1 Exit status 1

> angular2-quickstart@1.0.0 postinstall D:\Angular.JS\angular2-seed
> typings install

'typings' n’est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.8
npm WARN angular2-quickstart@1.0.0 No description
npm WARN angular2-quickstart@1.0.0 No repository field.
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v5.7.1
npm ERR! npm  v3.6.0
npm ERR! code ELIFECYCLE
npm ERR! angular2-quickstart@1.0.0 postinstall: `typings install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular2-quickstart@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 angular2-quickstart 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 angular2-quickstart
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls angular2-quickstart
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     D:\Angular.JS\angular2-seed\npm-debug.log

D:\Angular.JS\angular2-seed>
D:\Angular.JS\angular2 seed>npm安装
> bufferutil@1.2.1安装D:\Angular.JS\angular2 seed\node\u modules\bufferutil
>节点gyp重建
D:\Angular.JS\angular2 seed\node\u modules\bufferutil>如果未定义npm\u config\u node\u gyp(节点“C:\Program Files\nodejs\node\u modules\npm\bin\node gyp bin\\\\\\\\ node\u modules\node gyp\bin\node gyp.JS”re
生成)其他(节点“重建”)
回溯(最近一次呼叫最后一次):
文件“C:\Program Files\nodejs\node\U模块\npm\node\U模块\node gyp\gyp\gyp\gyp\U main.py”,第13行,在
进口石膏
文件“C:\Program Files\nodejs\node\u modules\npm\node\u modules\node gyp\gyp\pylib\gyp\\uuuuuuu init\uuuuuu.py”,第8行,在
导入gyp.input
文件“C:\Program Files\nodejs\node\U modules\npm\node\U modules\node gyp\gyp\pylib\gyp\input.py”,第15行,在
导入多处理
文件“C:\Python27\lib\multiprocessing\\uuuu init\uuuuu.py”,第84行,在
导入\u多处理
导入错误:DLL加载失败:%1未测试pas une应用程序Win32 valide。
哎呀!配置错误
哎呀!堆栈错误:`gyp`失败,退出代码:1
哎呀!堆栈在ChildProcess.onCpExit(C:\Program Files\nodejs\node\u modules\npm\node\u modules\node gyp\lib\configure.js:305:16)
哎呀!在emitTwo处堆栈(events.js:100:13)
哎呀!ChildProcess.emit处的堆栈(events.js:185:7)
哎呀!在Process.ChildProcess.\u handle.onexit(internal/child\u Process.js:200:12)处堆栈
哎呀!系统Windows\u NT 6.3.9600
哎呀!命令“C:\\Program Files\\nodejs\\node.exe”C:\\Program Files\\nodejs\\node\u modules\\npm\\node\u modules\\node gyp\\bin\\node gyp.js“重建”
哎呀!cwd:\Angular.JS\angular2 seed\node\u modules\bufferutil
哎呀!节点-v5.7.1
哎呀!节点gyp-v3.2.1
哎呀!不好
npm警告安装:bufferutil@1.2.1 bufferutil@1.2.1安装:`node gyp rebuild`
npm警告安装:bufferutil@1.2.1退出状态1
>utf-8-validate@1.2.1安装D:\Angular.JS\angular2 seed\node\u modules\utf-8-validate
>节点gyp重建
D:\Angular.JS\angular2 seed\node\u modules\utf-8-validate>如果未定义npm\u config\u node\u gyp(节点“C:\Program Files\nodejs\node\node\u modules\npm\bin\node\gyp bin\\\\\\\\\\\\\\\ node\gyp.JS
重建)其他(节点“重建”)
回溯(最近一次呼叫最后一次):
文件“C:\Program Files\nodejs\node\U模块\npm\node\U模块\node gyp\gyp\gyp\gyp\U main.py”,第13行,在
进口石膏
文件“C:\Program Files\nodejs\node\u modules\npm\node\u modules\node gyp\gyp\pylib\gyp\\uuuuuuu init\uuuuuu.py”,第8行,在
导入gyp.input
文件“C:\Program Files\nodejs\node\U modules\npm\node\U modules\node gyp\gyp\pylib\gyp\input.py”,第15行,在
导入多处理
文件“C:\Python27\lib\multiprocessing\\uuuu init\uuuuu.py”,第84行,在
导入\u多处理
导入错误:DLL加载失败:%1未测试pas une应用程序Win32 valide。
哎呀!配置错误
哎呀!堆栈错误:`gyp`失败,退出代码:1
哎呀!堆栈在ChildProcess.onCpExit(C:\Program Files\nodejs\node\u modules\npm\node\u modules\node gyp\lib\configure.js:305:16)
哎呀!在emitTwo处堆栈(events.js:100:13)
哎呀!ChildProcess.emit处的堆栈(events.js:185:7)
哎呀!在Process.ChildProcess.\u handle.onexit(internal/child\u Process.js:200:12)处堆栈
哎呀!系统Windows\u NT 6.3.9600
哎呀!命令“C:\\Program Files\\nodejs\\node.exe”C:\\Program Files\\nodejs\\node\u modules\\npm\\node\u modules\\node gyp\\bin\\node gyp.js“重建”
哎呀!cwd:\Angular.JS\angular2 seed\node\u modules\utf-8-validate
哎呀!节点-v5.7.1
哎呀!节点gyp-v3.2.1
哎呀!不好
npm警告安装:utf-8-validate@1.2.1utf-8-validate@1.2.1安装:`node gyp rebuild`
npm警告安装:utf-8-validate@1.2.1退出状态1
>角2-quickstart@1.0.0安装后D:\Angular.JS\angular2种子
>打字装置
“打字”是一种对内部司令部的侦察
你是外人,联合国计划执行者你是指挥官。
npm警告可选跳过失败的可选依赖项/chokidar/fsevents:
npm WARN notsup与您的操作系统或体系结构不兼容:fsevents@1.0.8
npm警告角度2-quickstart@1.0.0没有描述
npm警告角度2-quickstart@1.0.0没有存储库字段。
npm错误!Windows NT 6.3.9600
npm错误!argv“C:\\Program Files\\nodejs\\node.exe”“C:\\Program Files\\nodejs\\node\u modules\\npm\\bin\\npm cli.js”“安装”
npm错误!节点v5.7.1
npm错误!npm v3.6.0
npm错误!代码失效循环
npm错误!角2-quickstart@1.0.0postinstall:`typings安装`
npm错误!退出状态1
npm错误!
npm错误!在角度2处失败-quickstart@1.0.0安装后脚本“typings install”。
npm错误!确保已安装最新版本的node.js和npm。
npm错误!如果您这样做,这很可能是angular2 quickstart软件包的问题,
npm错误!与npm本身无关。
npm错误!告诉作者此操作在您的系统上失败:
npm错误!打字装置
npm错误!您可以通过以下方式获取有关如何打开此项目问题的信息:
npm错误!npm缺陷angular2快速启动
npm错误!或者,如果不可用,您可以通过以下方式获取他们的信息:
npm错误!npm所有者ls angular2快速启动
npm错误!上面可能还有其他日志输出。
npm错误!请在任何支持请求中包括以下文件:
npm错误!D:\Angular.JS\angular2 seed\npm-debug.log
D:\Angular.JS\angular2种子>

我期待着您的回答。

尝试将
node gyp
更新为最新版本,该版本与npm安装-g node相同-gyp@latest,但无济于事。