@anriko

Почему при установке ng new my-app The Schematic workflow failed. See above?

ng version
Angular CLI: 13.0.2
Node: 14.17.6
Package Manager: npm 7.23.0
OS: win32 x64

Angular:
...

Package Version
------------------------------------------------------
@angular-devkit/architect 0.1300.2 (cli-only)
@angular-devkit/core 13.0.2 (cli-only)
@angular-devkit/schematics 13.0.2 (cli-only)
@schematics/angular 13.0.2 (cli-only)

ng new my-app
? Would you like to add Angular routing? No
? Which stylesheet format would you like to use? CSS
CREATE my-app/angular.json (3039 bytes)
CREATE my-app/package.json (1070 bytes)    
CREATE my-app/README.md (1051 bytes)       
CREATE my-app/tsconfig.json (863 bytes)    
CREATE my-app/.editorconfig (274 bytes)    
CREATE my-app/.gitignore (620 bytes)       
CREATE my-app/.browserslistrc (600 bytes)  
CREATE my-app/karma.conf.js (1423 bytes)   
CREATE my-app/tsconfig.app.json (287 bytes)
CREATE my-app/tsconfig.spec.json (333 bytes)
CREATE my-app/src/favicon.ico (948 bytes)
CREATE my-app/src/index.html (291 bytes)
CREATE my-app/src/main.ts (372 bytes)
CREATE my-app/src/polyfills.ts (2338 bytes)
CREATE my-app/src/styles.css (80 bytes)
CREATE my-app/src/test.ts (745 bytes)
CREATE my-app/src/assets/.gitkeep (0 bytes)
CREATE my-app/src/environments/environment.prod.ts (51 bytes)
CREATE my-app/src/environments/environment.ts (658 bytes)
CREATE my-app/src/app/app.module.ts (314 bytes)
CREATE my-app/src/app/app.component.html (23332 bytes)
CREATE my-app/src/app/app.component.spec.ts (956 bytes)
CREATE my-app/src/app/app.component.ts (210 bytes)
CREATE my-app/src/app/app.component.css (0 bytes)
⠏ Installing packages (npm)...npm WARN deprecated flatten@1.0.3: flatten is deprecated in favor of utility frameworks such as lodash.
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be 
problematic.  See https://v8.dev/blog/math-random for details.
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup   [
npm WARN cleanup     'C:\\Users\\Anriko\\Desktop\\Angular домашка\\my-app\\node_modules\\postcss-replace-overflow-wrap',
npm WARN cleanup     [Error: EPERM: operation not permitted, unlink 'C:\Users\Anriko\Desktop\Angular домашка\my-app\node_modules\postcss-replace-overflow-wrap\node_modules\postcss\LICENSE'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'unlink',
npm WARN cleanup       path: 'C:\\Users\\Anriko\\Desktop\\Angular домашка\\my-app\\node_modules\\postcss-replace-overflow-wrap\\node_modules\\postcss\\LICENSE'
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     'C:\\Users\\Anriko\\Desktop\\Angular домашка\\my-app\\node_modules\\karma',
npm WARN cleanup     [Error: EPERM: operation not permitted, unlink 'C:\Users\Anriko\Desktop\Angular домашка\my-app\node_modules\karma\node_modules\tmp\CHANGELOG.md'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'unlink',
npm WARN cleanup       path: 'C:\\Users\\Anriko\\Desktop\\Angular домашка\\my-app\\node_modules\\karma\\node_modules\\tmp\\CHANGELOG.md'
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     'C:\\Users\\Anriko\\Desktop\\Angular домашка\\my-app\\node_modules',
npm WARN cleanup     [Error: EPERM: operation not permitted, unlink 'C:\Users\Anriko\Desktop\Angular домашка\my-app\node_modules\@angular\compiler-cli\bundles\index.js'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'unlink',
npm WARN cleanup       path: 'C:\\Users\\Anriko\\Desktop\\Angular домашка\\my-app\\node_modules\\@angular\\compiler-cli\\bundles\\index.js'
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     'C:\\Users\\Anriko\\Desktop\\Angular домашка\\my-app\\node_modules\\postcss-env-function',
npm WARN cleanup     [Error: EPERM: operation not permitted, unlink 'C:\Users\Anriko\Desktop\Angular домашка\my-app\node_modules\postcss-env-function\node_modules\postcss\lib\container.js'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'unlink',
npm WARN cleanup       path: 'C:\\Users\\Anriko\\Desktop\\Angular домашка\\my-app\\node_modules\\postcss-env-function\\node_modules\\postcss\\lib\\container.js'
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     'C:\\Users\\Anriko\\Desktop\\Angular домашка\\my-app\\node_modules\\postcss-media-minmax',
npm WARN cleanup     [Error: EPERM: operation not permitted, unlink 'C:\Users\Anriko\Desktop\Angular домашка\my-app\node_modules\postcss-media-minmax\node_modules\postcss\lib\css-syntax-error.js'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'unlink',
npm WARN cleanup       path: 'C:\\Users\\Anriko\\Desktop\\Angular домашка\\my-app\\node_modules\\postcss-media-minmax\\node_modules\\postcss\\lib\\css-syntax-error.js'
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     'C:\\Users\\Anriko\\Desktop\\Angular домашка\\my-app\\node_modules\\postcss-focus-visible',
npm WARN cleanup     [Error: EPERM: operation not permitted, unlink 'C:\Users\Anriko\Desktop\Angular домашка\my-app\node_modules\postcss-focus-visible\node_modules\postcss\lib\comment.js'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'unlink',
npm WARN cleanup       path: 'C:\\Users\\Anriko\\Desktop\\Angular домашка\\my-app\\node_modules\\postcss-focus-visible\\node_modules\\postcss\\lib\\comment.js'
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     'C:\\Users\\Anriko\\Desktop\\Angular домашка\\my-app\\node_modules\\postcss-logical',
npm WARN cleanup     [Error: EPERM: operation not permitted, unlink 'C:\Users\Anriko\Desktop\Angular домашка\my-app\node_modules\postcss-logical\node_modules\postcss\lib\container.js'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'unlink',
npm WARN cleanup       path: 'C:\\Users\\Anriko\\Desktop\\Angular домашка\\my-app\\node_modules\\postcss-logical\\node_modules\\postcss\\lib\\container.js'  
npm WARN cleanup     }
npm WARN cleanup   ],
npm WARN cleanup   [
npm WARN cleanup     'C:\\Users\\Anriko\\Desktop\\Angular домашка\\my-app\\node_modules\\postcss-color-functional-notation',
npm WARN cleanup     [Error: EPERM: operation not permitted, unlink 'C:\Users\Anriko\Desktop\Angular домашка\my-app\node_modules\postcss-color-functional-notation\node_modules\postcss\lib\at-rule.js'] {
npm WARN cleanup       errno: -4048,
npm WARN cleanup       code: 'EPERM',
npm WARN cleanup       syscall: 'unlink',
npm WARN cleanup       path: 'C:\\Users\\Anriko\\Desktop\\Angular домашка\\my-app\\node_modules\\postcss-color-functional-notation\\node_modules\\postcss\\lib\\at-rule.js'
npm WARN cleanup     }
npm WARN cleanup   ]
npm WARN cleanup ]
npm ERR! code ERR_SOCKET_TIMEOUT
npm ERR! network Socket timeout
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Anriko\AppData\Local\npm-cache\_logs\2021-11-17T18_22_23_126Z-debug.log
✖ Package install failed, see above.
The Schematic workflow failed. See above.
  • Вопрос задан
  • 67 просмотров
Пригласить эксперта
Ответы на вопрос 1
Xuxicheta
@Xuxicheta Куратор тега Angular
инженер
Ну видимо чето сырое в прод попало. Попробуйте поставить @angular/cli постарее.
npm i -g @angular/cli@версия
Версии можно тут посмотреть https://www.npmjs.com/package/@angular/cli
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы