簡體   English   中英

使用 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 錯誤! 可以在以下位置找到此運行的完整日志:npm ERR! C:\\Users\\Chirag\\AppData\\Roaming\\npm-cache_logs\\2018-12-08T11_52_10_677Z-debug.log包安裝失敗,見上。

簡單地說.. 不要嘗試在其中創建應用程序或任何東西

C:\WINDOWS\system32

所以節點無法訪問該路徑。 選擇當前用戶具有寫訪問權限的另一個分區上的 Windows 用戶文件夾或存儲庫路徑

解決了這個錯誤。 不得不四處走動來解決它。 將我的 npm 從 6.4.1 降級到 5.3.0,強制清理緩存,然后運行“ng new”命令。 感謝大家的幫助。

我有同樣的問題,但我通過以下步驟解決了它:

npm install @angular/compiler -g

npm全局安裝依賴包

雖然我已經解決了這個問題,但我不知道真正的原因。

在 Linux 系統中,這不是必須的。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM