首页 > 解决方案 > Origami 使用 Polymer v3.3.1 准备命令抛出错误

问题描述

Polymer大约一周前发布了v3.3.1 ,并且Origami prepare 命令在最新版本的 Polymer 中引发错误。请在下面找到错误消息。

Origami: Error: ENOENT: no such file or directory, scandir '/Users/nagarajh/repos/bitbucket/angular7-polymer3/node_modules/@polymer/polymer/_origami-es5'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! angular7-polymer3@0.0.0 prepare:es5: `origami prepare es5 node_modules/{nd-ui-components/,paper-collapse-item/,paper-range-slider/,@polymer/*,@vaadin/*,@webcomponents/shadycss}`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the angular7-polymer3@0.0.0 prepare:es5 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!     /Users/nagarajh/.npm/_logs/2019-11-15T06_19_23_238Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! angular7-polymer3@0.0.0 start: `npm run prepare:es5 && ng serve angular7-polymer3 --host 0.0.0.0`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the angular7-polymer3@0.0.0 start 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!     /Users/nagarajh/.npm/_logs/2019-11-15T06_19_23_257Z-debug.log

标签: polymerweb-componentpolymer-3.x

解决方案


Origami 发布了 v3.1.2 修复了这个问题https://github.com/hotforfeature/origami/releases/tag/v3.1.2


推荐阅读