简体   繁体   English

使用 ng 新项目时出现“包安装失败错误”

[英]'Package install failed error' while using ng new project

When I try当我尝试

ng new project

I get the errors below.我收到以下错误。 What am I doing wrong?我究竟做错了什么?

npm WARN tarball tarball data for @angular/compiler@~7.1.0 (sha512-ua6Wh+c5XzxAeJT6guwAFYnwa1XzJpncppUrceRXIS9VAn9X7ApxRr45DvbVeYwXBb1iNdHWtZFm1koFVQpydA==) seems to be corrupted. Trying one more time.***
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\is-finite-6beb745c\package.json'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\is-fullwidth-code-point-7dbf9fe0\package.json'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\is-fullwidth-code-point-7dbf9fe0\index.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\is-finite-6beb745c\index.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\is-fullwidth-code-point-7dbf9fe0\license'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\is-finite-6beb745c\license'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\is-fullwidth-code-point-7dbf9fe0\readme.md'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\is-finite-6beb745c\readme.md'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\wordwrap-57a51fb5\test\break.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\wordwrap-57a51fb5\test\wrap.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\wordwrap-57a51fb5\test\idleness.txt'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\@angular\router-a28d1a63\testing\src\router_testing_module.d.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\@angular\router-a28d1a63\testing\src\testing.d.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\@angular\common-c9211700\esm5\testing\index.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\@angular\router-a28d1a63\testing\testing.d.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\@angular\common-c9211700\esm5\testing\public_api.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\@angular\router-a28d1a63\testing\testing.metadata.json'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\selenium-webdriver-5349665a\lib\test\data\modal_dialogs\modal_1.html'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\selenium-webdriver-5349665a\lib\test\data\modal_dialogs\modal_2.html'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\selenium-webdriver-5349665a\lib\test\data\modal_dialogs\modal_3.html'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\selenium-webdriver-5349665a\lib\test\data\modal_dialogs\modalindex.html'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\parse5-90457661\lib\sax\dev_null_stream.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\parse5-90457661\lib\sax\index.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\parse5-90457661\lib\sax\parser_feedback_simulator.js'
npm WARN tar ENOENT: no such file or directory, lstat 'C:\WINDOWS\system32\app2\node_modules\.staging\parse5-90457661\lib'
npm WARN tar ENOENT: no such file or directory, lstat 'C:\WINDOWS\system32\app2\node_modules\.staging\@angular\core-fa556c93\esm2015\src\render3'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\less-3b8a7070\test\browser\less\modify-vars\imports\simple2.less'
npm WARN tar ENOENT: no such file or directory, lstat 'C:\WINDOWS\system32\app2\node_modules\.staging\@angular\core-fa556c93\esm2015'
npm WARN tar ENOENT: no such file or directory, lstat 'C:\WINDOWS\system32\app2\node_modules\.staging\less-3b8a7070\test\browser'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\selenium-webdriver-5349665a\lib\test\data\screen\screen.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\selenium-webdriver-5349665a\lib\test\data\screen\screen_iframes.html'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\selenium-webdriver-5349665a\lib\test\data\screen\screen.css'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\selenium-webdriver-5349665a\lib\test\data\screen\screen_frame1.html'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\selenium-webdriver-5349665a\lib\test\data\screen\screen_frame2.html'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\selenium-webdriver-5349665a\lib\test\data\screen\screen_frames.html'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\selenium-webdriver-5349665a\lib\test\data\screen\screen.html'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\selenium-webdriver-5349665a\lib\test\data\screen\screen_too_long.html'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\selenium-webdriver-5349665a\lib\test\data\screen\screen_x_long.html'
npm WARN tar ENOENT: no such file or directory, lstat 'C:\WINDOWS\system32\app2\node_modules\.staging\resolve-e8cba080\test\resolver\biz\node_modules\garply\lib'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\selenium-webdriver-5349665a\lib\test\data\screen\screen_x_too_long.html'
npm WARN tar ENOENT: no such file or directory, lstat 'C:\WINDOWS\system32\app2\node_modules\.staging\less-3b8a7070\test\browser\less\postProcessor'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\selenium-webdriver-5349665a\lib\test\data\screen\screen_y_long.html'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\selenium-webdriver-5349665a\lib\test\data\screen\screen_y_too_long.html'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\selenium-webdriver-5349665a\lib\test\data\scroll.html'
npm WARN tar ENOENT: no such file or directory, lstat 'C:\WINDOWS\system32\app2\node_modules\.staging\resolve-e8cba080\test\resolver'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\selenium-webdriver-5349665a\lib\test\data\scroll2.html'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\selenium-webdriver-5349665a\lib\test\data\scroll3.html'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\selenium-webdriver-5349665a\lib\test\data\scroll4.html'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\selenium-webdriver-5349665a\lib\test\data\scroll5.html'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\babel-runtime-ccf3acda\core-js\array\concat.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\babel-runtime-ccf3acda\core-js\array\index-of.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\babel-runtime-ccf3acda\core-js\array\join.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\babel-runtime-ccf3acda\core-js\array\keys.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\babel-runtime-ccf3acda\core-js\array\includes.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\babel-runtime-ccf3acda\core-js\array\map.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\babel-runtime-ccf3acda\core-js\array\of.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\_esm2015\internal\util\ArgumentOutOfRangeError.js.map'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\babel-runtime-ccf3acda\core-js\array\every.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\_esm2015\internal\util\canReportError.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\babel-runtime-ccf3acda\core-js\array\splice.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\_esm2015\internal\util\canReportError.js.map'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\babel-runtime-ccf3acda\core-js\array\entries.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\_esm2015\internal\util\EmptyError.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\babel-runtime-ccf3acda\core-js\array\unshift.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\babel-runtime-ccf3acda\core-js\array\copy-within.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\_esm2015\internal\util\EmptyError.js.map'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\babel-runtime-ccf3acda\core-js\array\values.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\_esm2015\internal\util\errorObject.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\@angular\common-c9211700\src\pipes\deprecated\intl.d.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\concatAll.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\concatMap.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\concatMapTo.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\count.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\debounce.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\debounceTime.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\defaultIfEmpty.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\delay.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\delayWhen.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\dematerialize.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\distinct.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\distinctUntilChanged.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\distinctUntilKeyChanged.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\elementAt.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\endWith.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\every.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\exhaust.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\exhaustMap.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\expand.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\filter.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\finalize.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\find.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\findIndex.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\first.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\groupBy.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\ignoreElements.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\index.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\isEmpty.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\last.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\map.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\mapTo.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\materialize.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\max.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\merge.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\mergeAll.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\mergeMap.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\mergeMapTo.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\mergeScan.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\min.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\multicast.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\observeOn.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\onErrorResumeNext.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\pairwise.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\partition.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\pluck.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\publish.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\publishBehavior.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\publishLast.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\publishReplay.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\race.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\reduce.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\refCount.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\repeat.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\repeatWhen.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\retry.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\retryWhen.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\sample.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\sampleTime.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\scan.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\sequenceEqual.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\share.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\shareReplay.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\single.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\skip.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\skipLast.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\skipUntil.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\skipWhile.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\startWith.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\subscribeOn.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\switchAll.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\switchMap.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\switchMapTo.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\take.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\takeLast.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\takeUntil.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\takeWhile.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\tap.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\throttle.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\throttleTime.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\throwIfEmpty.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\timeInterval.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\timeout.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\timeoutWith.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\timestamp.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\toArray.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\window.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\windowCount.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\windowTime.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\windowToggle.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\windowWhen.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\withLatestFrom.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\zip.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\operators\zipAll.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\OuterSubscriber.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\ReplaySubject.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\Rx.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\WINDOWS\system32\app2\node_modules\.staging\rxjs-c92c8597\src\internal\Scheduler.ts'
npm ERR! path C:\WINDOWS\system32\app2\node_modules\.staging\@angular\compiler-2eab7a39\bundles\compiler.umd.js.map
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink 'C:\WINDOWS\system32\app2\node_modules\.staging\@angular\compiler-2eab7a39\bundles\compiler.umd.js.map'
npm ERR!  { [Error: EPERM: operation not permitted, unlink 'C:\WINDOWS\system32\app2\node_modules\.staging\@angular\compiler-2eab7a39\bundles\compiler.umd.js.map']
npm ERR!   cause:
npm ERR!    { Error: EPERM: operation not permitted, unlink 'C:\WINDOWS\system32\app2\node_modules\.staging\@angular\compiler-2eab7a39\bundles\compiler.umd.js.map'
npm ERR!      errno: -4048,
npm ERR!      code: 'EPERM',
npm ERR!      syscall: 'unlink',
npm ERR!      path:
npm ERR!       'C:\\WINDOWS\\system32\\app2\\node_modules\\.staging\\@angular\\compiler-2eab7a39\\bundles\\compiler.umd.js.map' },
npm ERR!   stack:
npm ERR!    'Error: EPERM: operation not permitted, unlink \'C:\\WINDOWS\\system32\\app2\\node_modules\\.staging\\@angular\\compiler-2eab7a39\\bundles\\compiler.umd.js.map\'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'unlink',
npm ERR!   path:
npm ERR!    'C:\\WINDOWS\\system32\\app2\\node_modules\\.staging\\@angular\\compiler-2eab7a39\\bundles\\compiler.umd.js.map',
npm ERR!   parent: 'app2' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).

npm ERR! npm 错误! A complete log of this run can be found in: npm ERR!可以在以下位置找到此运行的完整日志:npm ERR! C:\\Users\\Chirag\\AppData\\Roaming\\npm-cache_logs\\2018-12-08T11_52_10_677Z-debug.log Package install failed, see above. C:\\Users\\Chirag\\AppData\\Roaming\\npm-cache_logs\\2018-12-08T11_52_10_677Z-debug.log包安装失败,见上。

simply saying .. don't try to create apps or anything in简单地说.. 不要尝试在其中创建应用程序或任何东西

C:\WINDOWS\system32

so node can't access to that path .所以节点无法访问该路径。 select windows user folder or a repo path on another partition that the current user have write access选择当前用户具有写访问权限的另一个分区上的 Windows 用户文件夹或存储库路径

Resolved this error.解决了这个错误。 Had to go around-about way to resolve it.不得不四处走动来解决它。 Downgraded my npm from 6.4.1 to 5.3.0, force cleaned cache and then ran the 'ng new' command.将我的 npm 从 6.4.1 降级到 5.3.0,强制清理缓存,然后运行“ng new”命令。 Thanks for all your help everyone.感谢大家的帮助。

I have the same issue, but I resolve it through the following step:我有同样的问题,但我通过以下步骤解决了它:

npm install @angular/compiler -g npm install @angular/compiler -g

npm install the dependent package globally npm全局安装依赖包

although I have resolved this issue, I don't know true reason.虽然我已经解决了这个问题,但我不知道真正的原因。

in a Linux system, this is not must.在 Linux 系统中,这不是必须的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM