Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.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
Angular 启动带有角度项目错误的nativescript_Angular_Nativescript_Nativescript Angular - Fatal编程技术网

Angular 启动带有角度项目错误的nativescript

Angular 启动带有角度项目错误的nativescript,angular,nativescript,nativescript-angular,Angular,Nativescript,Nativescript Angular,我正在尝试使用命令启动我的第一个nativescript[w.Angular]应用程序 ns create my-angular-app --ng 我得到这个错误 Command npm.cmd failed with exit code 1 Error output: npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated chokid

我正在尝试使用命令启动我的第一个nativescript[w.Angular]应用程序

ns create my-angular-app --ng
我得到这个错误


Command npm.cmd failed with exit code 1 Error output:
 npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
'Web' is not recognized as an internal or external command,
operable program or batch file.
internal/modules/cjs/loader.js:968
  throw err;
  ^

Error: Cannot find module 'D:\Programming\@angular\compiler-cli\ngcc\main-ngcc.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
    at Function.Module._load (internal/modules/cjs/loader.js:841:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @nativescript/template-hello-world-ng@7.0.2 ngcc: `ngcc --properties es2015 module main --first-only`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @nativescript/template-hello-world-ng@7.0.2 ngcc script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\OMAR\AppData\Roaming\npm-cache\_logs\2020-09-15T15_13_14_481Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @nativescript/template-hello-world-ng@7.0.2 postinstall: `npm run ngcc`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @nativescript/template-hello-world-ng@7.0.2 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\OMAR\AppData\Roaming\npm-cache\_logs\2020-09-15T15_13_14_671Z-debug.log


我做了很多研究,但即使启动一个nativescript项目也会出现很多错误

有什么帮助吗