Я получаю сообщение об ошибке, когда я запускаю новый блабла - PullRequest
0 голосов
/ 26 марта 2019

При попытке выполнить «ng new angular-realtime-polling» появляется следующая ошибка:

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

добавлено 1013 пакетов от 1014 участников и проверено 42608 пакетов в 1412,486 с. Найдено 0 уязвимостей Der Befehl"git" ist entweder falsch geschrieben oder konnte nicht gefunden werden.

Кто-то знает, почему я получаю эту ошибку и как я могу ее исправить?Потому что я понятия не имею.Большое спасибо !

1 Ответ

1 голос
/ 26 марта 2019

Вам необходимо установить python и установить переменную среды, как указано в сообщении об ошибке, для решения этой проблемы.

Этот вопрос отвечает на вопрос, как установить переменную среды для windows.

Посетите эту ссылку , чтобы получить нужную версию Python.В windows установщик python попросит вас автоматически добавить переменную окружения.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...