如何解决开始带有角项目错误的本机脚本
我正在尝试开始我的第一个本机脚本[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
我做了很多研究,即使启动一个本机脚本项目也会带来很多错误。
有什么帮助吗?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。