Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/30.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Node.js 使用ng新项目时出现“程序包安装失败错误”_Node.js_Angular_Npm_Angular Cli V7 - Fatal编程技术网

Node.js 使用ng新项目时出现“程序包安装失败错误”

Node.js 使用ng新项目时出现“程序包安装失败错误”,node.js,angular,npm,angular-cli-v7,Node.js,Angular,Npm,Angular Cli V7,当我尝试 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

当我尝试

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错误!C:\Users\Chirag\AppData\Roaming\npm-cache\u logs\2018-12-08T11\u 52\u 10\u 677Z-debug.log
软件包安装失败,请参见上文。

简单地说。。不要尝试在中创建应用程序或任何东西

C:\WINDOWS\system32

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

已解决此错误。不得不四处寻找解决问题的方法。将我的npm从6.4.1降级到5.3.0,强制清理缓存,然后运行“ng new”命令。谢谢大家的帮助。

我也有同样的问题,但我通过以下步骤解决:

npm安装@angular/compiler-g

npm全局安装依赖包

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


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

这里似乎与这个问题有关:我确实在桌面上创建了一个目录,并使用该路径创建了一个新项目。。。仍然是相同的错误,还有一个不推荐使用的警告。flatted成功了。请更新节点并检查它是否仍然存在。如果是这样,请创建一个repo以进一步检查更新我的节点不起作用[我使用了'npm install-g npm windows upgrade npm windows upgrade']。这个错误仍然存在,令人烦恼的是,{npm WARN已弃用循环-json@0.5.9:CircularJSON仅在维护中,flatted是它的继承者。@angular/compiler@~7.1.0 sha512-ua6Wh+C5XZXAEJT6GUWAFYNWA1XZJPNCPPURCERXIS9VAN9X7APXR45DVBVEYWXBB1INDHWTZFM1KOFVQPYDA==的npm WARN tarball tarball tarball数据似乎已损坏。请再试一次。}我下面的大多数错误都是带有tarball异常的enoint类型。{您能告诉我如何创建回购以供进一步验证。我是新来的}创建一个GitHub帐户并创建一个新的存储库。然后按照被诽谤的git命令将源代码推送到git存储库并将链接粘贴到此处。另外,请说明您的开发环境详细信息。更多信息