库的角度示意图:构建原理图会产生角度10的误差

问题描述

根据关于库https://angular.io/guide/schematics-for-libraries的原理图的Angular文档,我尝试运行脚本以npm run build https://angular.io/guide/schematics-for-libraries#building-your-schematics来构建原理图

"scripts": {
    "build": "../../node_modules/.bin/tsc -p tsconfig.schematics.json","copy:schemas": "cp --parents schematics/*/schema.json ../../dist/my-lib/","copy:files": "cp --parents -p schematics/*/files/** ../../dist/my-lib/","copy:collection": "cp schematics/collection.json ../../dist/my-lib/schematics/collection.json","postbuild": "npm run copy:schemas && npm run copy:files && npm run copy:collection"
  }

它记录以下错误

'..' is not recognized as an internal or external command,operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! library-name build: `../../node_modules/.bin/tsc -p tsconfig.schematics.json`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the library-name build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists,but node_modules missing,did you mean to install?

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

执行../../node_modules/.bin/tsc -p tsconfig.schematics.json时出现错误

P.S。我正在使用Angular-10创建库。谢谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...