1 报错内容
verbose stack TypeError: Cannot read properties of null (reading 'pickAlgorithm')
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module 'antd-theme-generator'
Require stack:
2 报错原因
node版本与angular不兼容,使用ng v命令后最后一行提示二者不兼容。
目前博主切换回14后,项目正常启动了。
dengkai@Sucres-MacBook-Pro ~ % ng v
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 12.2.14
Node: 16.13.1 (Unsupported)
Package Manager: npm 8.1.0
OS: darwin arm64
Angular:
...
Package Version
------------------------------------------------------
@angular-devkit/architect 0.1202.14 (cli-only)
@angular-devkit/core 12.2.14 (cli-only)
@angular-devkit/schematics 12.2.14 (cli-only)
@schematics/angular 12.2.14 (cli-only)
Warning: The current version of Node (16.13.1) is not supported by Angular.