Angularjs 我试图运行sb-admin-bs4-angular2-master,这是一个nodejs应用程序,运行npm安装时出现以下错误

Angularjs 我试图运行sb-admin-bs4-angular2-master,这是一个nodejs应用程序,运行npm安装时出现以下错误,angularjs,node.js,npm,gulp,angular-ui-bootstrap,Angularjs,Node.js,Npm,Gulp,Angular Ui Bootstrap,首先,我运行npm安装-gts节点 然后我运行npm安装,这会给我以下错误…不知道该怎么办。。 当我运行它的npm开始。。。它给了我更多关于gulp服务器之类的错误 C:\Users\Raheel\Downloads\SB-Admin-BS4-Angular-2-master\SB-Admin-BS4-Angular-2-master\node_modules\c3\node_modules\d3\node_modules\jsdom\node_modules\contextify>if

首先,我运行npm安装-gts节点 然后我运行npm安装,这会给我以下错误…不知道该怎么办。。 当我运行它的npm开始。。。它给了我更多关于gulp服务器之类的错误

C:\Users\Raheel\Downloads\SB-Admin-BS4-Angular-2-master\SB-Admin-BS4-Angular-2-master\node_modules\c3\node_modules\d3\node_modules\jsdom\node_modules\contextify>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 )
gyp ERR! configure error
gyp ERR! stack Error: Python executable "C:\Users\Raheel\AppData\Local\Programs\Python\Python35-32\python.EXE" is v3.5.1, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack     at failPythonVersion (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:406:14)
gyp ERR! stack     at C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:395:9
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:204:7)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at maybeClose (internal/child_process.js:827:16)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
gyp ERR! System Windows_NT 6.1.7601
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 C:\Users\Raheel\Downloads\SB-Admin-BS4-Angular-2-master\SB-Admin-BS4-Angular-2-master\node_modules\c3\node_modules\d3\node_modules\jsdom\node_modules\contextify
gyp ERR! node -v v4.4.3
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
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 v4.4.3
npm ERR! npm  v2.15.1
npm ERR! code ELIFECYCLE

npm ERR! contextify@0.1.15 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the contextify@0.1.15 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the contextify package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs contextify
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR!     npm owner ls contextify
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Raheel\Downloads\SB-Admin-BS4-Angular-2-master\SB-Admin-BS4-Angular-2-master\npm-debug.log

C:\Users\Raheel\Downloads\SB-Admin-BS4-Angular-2-master\SB-Admin-BS4-Angular-2-m
aster>
C:\Users\Raheel\Downloads\SB-Admin-BS4-Angular-2-master\SB-Admin-BS4-Angular-2-master\node_modules\c3\node_modules\d3\node_modules\jsdom\node_modules\contextify>如果未定义npm_配置节点_gyp(节点“C:\Program Files\node js\nodeè\nodeèmodules\nodeè\nodeè\nèmodules\npm\bin\bin\npm\bin\bin\bin\bin\node
哎呀!配置错误
哎呀!堆栈错误:Python可执行文件“C:\Users\Raheel\AppData\Local\Programs\Python\Python35-32\Python.EXE”是v3.5.1,gyp不支持该文件。
哎呀!堆栈您可以传递--python开关指向python>=v2.5.0&<3.0.0。
哎呀!FailPythVersion时堆栈(C:\Program Files\nodejs\node\u modules\npm\node\u modules\node gyp\lib\configure.js:406:14)
哎呀!堆栈位于C:\Program Files\nodejs\node\u modules\npm\node\u modules\node gyp\lib\configure.js:395:9
哎呀!在ChildProcess.exithandler处堆栈(child_process.js:204:7)
哎呀!在emitTwo处堆栈(events.js:87:13)
哎呀!ChildProcess.emit处的堆栈(events.js:172:7)
哎呀!maybeClose的堆栈(内部/子进程js:827:16)
哎呀!在Process.ChildProcess.\u handle.onexit(internal/child\u Process.js:211:5)处堆栈
哎呀!系统Windows\u NT 6.1.7601
哎呀!命令“C:\\Program Files\\nodejs\\node.exe”C:\\Program Files\\nodejs\\node\u modules\\npm\\node\u modules\\node gyp\\bin\\node gyp.js“重建”
哎呀!cwd C:\Users\Raheel\Downloads\SB-Admin-BS4-Angular-2-master\SB-Admin-BS4-Angular-2-master\node\u modules\c3\node\u modules\d3\node\u modules\jsdom\node\u modules\contextify
哎呀!节点-v4.4.3
哎呀!节点gyp-v3.3.1
哎呀!不好
npm错误!Windows NT 6.1.7601
npm错误!argv“C:\\Program Files\\nodejs\\node.exe”C:\\Program Files\\nodejs\\
节点\u模块\\npm\\bin\\npm cli.js“安装”
npm错误!节点v4.4.3
npm错误!npm v2.15.1
npm错误!代码失效循环
npm错误!contextify@0.1.15安装:`node gyp rebuild`
npm错误!退出状态1
npm错误!
npm错误!失败contextify@0.1.15安装脚本“节点gyp重建”。
npm错误!这很可能是contextify包的问题,
npm错误!与npm本身无关。
npm错误!告诉作者此操作在您的系统上失败:
npm错误!节点gyp重建
npm错误!您可以通过以下方式获取有关如何打开此项目问题的信息:
npm错误!npm bug上下文化
npm错误!或者,如果不可用,您可以通过以下方式获取他们的信息:
npm错误!
npm错误!npm所有者ls上下文化
npm错误!上面可能还有其他日志输出。
npm错误!请在任何支持请求中包括以下文件:
npm错误!C:\Users\Raheel\Downloads\SB-Admin-BS4-Angular-2-master\SB-Admin-BS4-Angular-2-master\npm-debug.log
C:\Users\Raheel\Downloads\SB-Admin-BS4-Angular-2-master\SB-Admin-BS4-Angular-2-m
紫菀>

在第一行中,您可以阅读:

Error: Python executable "C:\Users\Raheel\AppData\Local\Programs\Python\Python35-32\python.EXE" is v3.5.1, which is not supported by gyp.
检查您是否安装了Python2.5,似乎npm无法使用Python3.x

如果我没有错的话,您需要一个python版本,它是2.5或更高版本,但低于3.0。 查看更多信息