Python 我开始使用新blabla时出错

Python 我开始使用新blabla时出错,python,angular,npm,Python,Angular,Npm,当我尝试执行“ng new angular Real Time polling”时,出现以下错误: gyp动词clean删除“build”目录 gyp谓词命令配置[] gyp谓词检查python检查路径中的python可执行文件“python2” gyp动词`which`失败错误:未找到:python2 gyp谓词`which`在getNotFoundError失败(U:\angular realtime polling\node\U modules\which\which.js:13:12)

当我尝试执行“ng new angular Real Time polling”时,出现以下错误:

gyp动词clean删除“build”目录
gyp谓词命令配置[]
gyp谓词检查python检查路径中的python可执行文件“python2”
gyp动词`which`失败错误:未找到:python2
gyp谓词`which`在getNotFoundError失败(U:\angular realtime polling\node\U modules\which\which.js:13:12)
gyp动词`which`在F处失败(U:\angular realtime polling\node\U modules\which\which.js:68:19)
gyp动词`which`在E处失败(U:\angular realtime polling\node\U modules\which\which.js:80:29)
gyp谓词`which`在U:\angular realtime polling\node\U modules\which\which.js:89:16失败
gyp动词`which`在U:\angular realtime polling\node\U modules\isexe\index.js:42:5失败
gyp动词`which`在U:\angular realtime polling\node\U modules\isexe\windows.js:36:5失败
gyp动词`which`在FSReqWrap.oncomplete失败(fs.js:153:21)
gyp动词`which`failed python2{错误:未找到:python2
gyp谓词`which`在getNotFoundError失败(U:\angular realtime polling\node\U modules\which\which.js:13:12)
gyp动词`which`在F处失败(U:\angular realtime polling\node\U modules\which\which.js:68:19)
gyp动词`which`在E处失败(U:\angular realtime polling\node\U modules\which\which.js:80:29)
gyp谓词`which`在U:\angular realtime polling\node\U modules\which\which.js:89:16失败
gyp动词`which`在U:\angular realtime polling\node\U modules\isexe\index.js:42:5失败
gyp动词`which`在U:\angular realtime polling\node\U modules\isexe\windows.js:36:5失败
gyp动词`which`在FSReqWrap.oncomplete失败(fs.js:153:21)
gyp动词`which`堆栈失败:
gyp动词'which'failed'错误:找不到:python2\n在getNotFoundError(U:\\angular realtime polling\\node\U modules\\which\\which.js:13:12)\n在F(U:\\angular realtime polling\\node\U modules\\which.js:13:12)\n在E(U:\\angular realtime polling\\node\U modules\\which\\which.js:80:29)\n在U:\\angular realtime polling\\node\U modules\\which\\which.js:89:16\n在U:\\angular realtime polling\\node\U modules\\isexe\\windows.js:36:5\n在FSReqWrap.oncomplete(fs.js:153:21)',
gyp动词`which`failed code:'enoint'}
gyp谓词检查python检查路径中的python可执行文件“python”
gyp动词`which`失败错误:未找到:python
gyp谓词`which`在getNotFoundError失败(U:\angular realtime polling\node\U modules\which\which.js:13:12)
gyp动词`which`在F处失败(U:\angular realtime polling\node\U modules\which\which.js:68:19)
gyp动词`which`在E处失败(U:\angular realtime polling\node\U modules\which\which.js:80:29)
gyp谓词`which`在U:\angular realtime polling\node\U modules\which\which.js:89:16失败
gyp动词`which`在U:\angular realtime polling\node\U modules\isexe\index.js:42:5失败
gyp动词`which`在U:\angular realtime polling\node\U modules\isexe\windows.js:36:5失败
gyp动词`which`在FSReqWrap.oncomplete失败(fs.js:153:21)
gyp动词`which`python失败{错误:未找到:python
gyp谓词`which`在getNotFoundError失败(U:\angular realtime polling\node\U modules\which\which.js:13:12)
gyp动词`which`在F处失败(U:\angular realtime polling\node\U modules\which\which.js:68:19)
gyp动词`which`在E处失败(U:\angular realtime polling\node\U modules\which\which.js:80:29)
gyp谓词`which`在U:\angular realtime polling\node\U modules\which\which.js:89:16失败
gyp动词`which`在U:\angular realtime polling\node\U modules\isexe\index.js:42:5失败
gyp动词`which`在U:\angular realtime polling\node\U modules\isexe\windows.js:36:5失败
gyp动词`which`在FSReqWrap.oncomplete失败(fs.js:153:21)
gyp动词`which`堆栈失败:
gyp动词'which`failed'错误:找不到:python在getNotFoundError(U:\\angular realtime polling\\node\U modules\\which\\which.js:13:12)\n在F(U:\\angular realtime polling\\node\U modules\\which.js:80:29)在E(U:\\angular realtime polling\\node\U modules\\which\\which.js:80:29)\n在U:\\angular realtime polling\\node\U modules\\which\\which.js:89:16\n在U:\\angular realtime polling\\node\U modules\\isexe\\windows.js:36:5\n在FSReqWrap.oncomplete(fs.js:153:21)',
gyp动词`which`failed code:'enoint'}
gyp谓词找不到“python”。检查python启动器
gyp谓词找不到“python”。猜测位置
确保文件存在的gyp谓词:C:\Python27\python.exe
哎呀!配置错误
哎呀!堆栈错误:找不到Python可执行文件“Python”,可以设置Python env变量。
哎呀!PythonFinder.failNoPython上的堆栈(U:\angular realtime polling\node\U modules\node gyp\lib\configure.js:484:19)
哎呀!堆叠在PythonFinder。(U:\angular Real Time polling\node\U modules\node gyp\lib\configure.js:509:16)
哎呀!堆栈位于U:\angular realtime polling\node\U modules\fs\polyfills.js:282:31
哎呀!堆栈在FSReqWrap.oncomplete(fs.js:153:21)
哎呀!系统Windows\u NT 10.0.16299
哎呀!命令“C:\\Program Files\\nodejs\\node.exe”“U:\\angular Real Time polling\\node\U modules\\node gyp\\bin\\node gyp.js”“rebuild”“--verbose”“--libsass\U ext=”“--libsass\U cflags=“--libsass\U ldflags=”“--libsass\U library=”
哎呀!cwd U:\角度实时轮询\节点\模块\节点sass
哎呀!节点-v10.15.3
哎呀!节点gyp-v3.8.0
哎呀!不好
生成失败,错误代码:1
npm警告回滚回滚可读-stream@2.3.6失败(这可能无害):EPERM:不允许操作,lstat'U:\angular realtime polling\node\U modules\fsevents\node\U modules'
npm警告可选跳过可选依赖项:fsevents@1.2.7(节点\u模块\fsevents):
npm WARN notsup跳过可选依赖项:不支持的平台fsevents@1.2.7:通缉犯{“os”:“darwin”,“arch”:“any”}(c)
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
gyp verb `which` failed     at getNotFoundError (U:\angular-realtime-polling\node_modules\which\which.js:13:12)
gyp verb `which` failed     at F (U:\angular-realtime-polling\node_modules\which\which.js:68:19)
gyp verb `which` failed     at E (U:\angular-realtime-polling\node_modules\which\which.js:80:29)
gyp verb `which` failed     at U:\angular-realtime-polling\node_modules\which\which.js:89:16
gyp verb `which` failed     at U:\angular-realtime-polling\node_modules\isexe\index.js:42:5
gyp verb `which` failed     at U:\angular-realtime-polling\node_modules\isexe\windows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:153:21)
gyp verb `which` failed  python2 { Error: not found: python2
gyp verb `which` failed     at getNotFoundError (U:\angular-realtime-polling\node_modules\which\which.js:13:12)
gyp verb `which` failed     at F (U:\angular-realtime-polling\node_modules\which\which.js:68:19)
gyp verb `which` failed     at E (U:\angular-realtime-polling\node_modules\which\which.js:80:29)
gyp verb `which` failed     at U:\angular-realtime-polling\node_modules\which\which.js:89:16
gyp verb `which` failed     at U:\angular-realtime-polling\node_modules\isexe\index.js:42:5
gyp verb `which` failed     at U:\angular-realtime-polling\node_modules\isexe\windows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:153:21)
gyp verb `which` failed   stack:
gyp verb `which` failed    'Error: not found: python2\n    at getNotFoundError (U:\\angular-realtime-polling\\node_modules\\which\\which.js:13:12)\n    at F (U:\\angular-realtime-polling\\node_modules\\which\\which.js:68:19)\n    at E (U:\\angular-realtime-polling\\node_modules\\which\\which.js:80:29)\n    at U:\\angular-realtime-polling\\node_modules\\which\\which.js:89:16\n    at U:\\angular-realtime-polling\\node_modules\\isexe\\index.js:42:5\n    at U:\\angular-realtime-polling\\node_modules\\isexe\\windows.js:36:5\n    at FSReqWrap.oncomplete (fs.js:153:21)',
gyp verb `which` failed   code: 'ENOENT' }
gyp verb check python checking for Python executable "python" in the PATH
gyp verb `which` failed Error: not found: python
gyp verb `which` failed     at getNotFoundError (U:\angular-realtime-polling\node_modules\which\which.js:13:12)
gyp verb `which` failed     at F (U:\angular-realtime-polling\node_modules\which\which.js:68:19)
gyp verb `which` failed     at E (U:\angular-realtime-polling\node_modules\which\which.js:80:29)
gyp verb `which` failed     at U:\angular-realtime-polling\node_modules\which\which.js:89:16
gyp verb `which` failed     at U:\angular-realtime-polling\node_modules\isexe\index.js:42:5
gyp verb `which` failed     at U:\angular-realtime-polling\node_modules\isexe\windows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:153:21)
gyp verb `which` failed  python { Error: not found: python
gyp verb `which` failed     at getNotFoundError (U:\angular-realtime-polling\node_modules\which\which.js:13:12)
gyp verb `which` failed     at F (U:\angular-realtime-polling\node_modules\which\which.js:68:19)
gyp verb `which` failed     at E (U:\angular-realtime-polling\node_modules\which\which.js:80:29)
gyp verb `which` failed     at U:\angular-realtime-polling\node_modules\which\which.js:89:16
gyp verb `which` failed     at U:\angular-realtime-polling\node_modules\isexe\index.js:42:5
gyp verb `which` failed     at U:\angular-realtime-polling\node_modules\isexe\windows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:153:21)
gyp verb `which` failed   stack:
gyp verb `which` failed    'Error: not found: python\n    at getNotFoundError (U:\\angular-realtime-polling\\node_modules\\which\\which.js:13:12)\n    at F (U:\\angular-realtime-polling\\node_modules\\which\\which.js:68:19)\n    at E (U:\\angular-realtime-polling\\node_modules\\which\\which.js:80:29)\n    at U:\\angular-realtime-polling\\node_modules\\which\\which.js:89:16\n    at U:\\angular-realtime-polling\\node_modules\\isexe\\index.js:42:5\n    at U:\\angular-realtime-polling\\node_modules\\isexe\\windows.js:36:5\n    at FSReqWrap.oncomplete (fs.js:153:21)',
gyp verb `which` failed   code: 'ENOENT' }
gyp verb could not find "python". checking python launcher
gyp verb could not find "python". guessing location
gyp verb ensuring that file exists: C:\Python27\python.exe
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failNoPython (U:\angular-realtime-polling\node_modules\node-gyp\lib\configure.js:484:19)
gyp ERR! stack     at PythonFinder.<anonymous> (U:\angular-realtime-polling\node_modules\node-gyp\lib\configure.js:509:16)
gyp ERR! stack     at U:\angular-realtime-polling\node_modules\graceful-fs\polyfills.js:282:31
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:153:21)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "U:\\angular-realtime-polling\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd U:\angular-realtime-polling\node_modules\node-sass
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN rollback Rolling back readable-stream@2.3.6 failed (this is probably harmless): EPERM: operation not permitted, lstat 'U:\angular-realtime-polling\node_modules\fsevents\node_modules'
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-sass@4.11.0 (node_modules\node-sass):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-sass@4.11.0 postinstall: `node scripts/build.js`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1