'Package install failed error' 在使用 ng 新项目时

'Package install failed error' while using ng new project

当我尝试时

ng new project

我收到以下错误。我做错了什么?

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 错误!此 运行 的完整日志可在以下位置找到: 错误! C:\Users\Chirag\AppData\Roaming\npm-cache_logs18-12-08T11_52_10_677Z-debug.log 包安装失败,见上文。

简单地说..不要尝试在

中创建应用程序或任何东西
C:\WINDOWS\system32

所以节点无法访问该路径。 select windows 当前用户具有写入权限的另一个分区上的用户文件夹或回购路径

解决了这个错误。不得不四处走动的方式来解决它。将我的 npm 从 6.4.1 降级到 5.3.0,强制清理缓存,然后 运行 'ng new' 命令。感谢大家的帮助。

我也遇到了同样的问题,但是我通过以下步骤解决了:

npm install @angular/compiler -g

npm安装依赖包全局

虽然我已经解决了这个问题,但我不知道真正的原因。

在 Linux 系统中,这不是必须的。