- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 gulp-angular yeoman 生成器,如果我创建一个新项目,然后运行 gulp build 或 gulp serve:dist 我会得到这个错误:
每当我尝试构建我的项目时,我都会收到此错误:
[16:03:56] gulp-inject 2 files into index.less. fs.js:887 return binding.lstat(pathModule._makeLong(path)); ^
Error: ENOENT: no such file or directory, lstat '/Users/danielrvt/IdeaProjects/rztest/src/app/templateCacheHtml.js' at Error (native) at Object.fs.lstatSync (fs.js:887:18) at DestroyableTransform.TransformStream as _transform at DestroyableTransform.Transform.read (/Users/danielrvt/IdeaProjects/rztest/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:159:10) at DestroyableTransform.Transform._write (/Users/danielrvt/IdeaProjects/rztest/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:147:83) at doWrite (/Users/danielrvt/IdeaProjects/rztest/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:313:64) at writeOrBuffer (/Users/danielrvt/IdeaProjects/rztest/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:302:5) at DestroyableTransform.Writable.write (/Users/danielrvt/IdeaProjects/rztest/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:241:11) at write (/Users/danielrvt/IdeaProjects/rztest/node_modules/gulp-concat/node_modules/readable-stream/lib/_stream_readable.js:623:24) at flow (/Users/danielrvt/IdeaProjects/rztest/node_modules/gulp-concat/node_modules/readable-stream/lib/_stream_readable.js:632:7) at DestroyableTransform.pipeOnReadable (/Users/danielrvt/IdeaProjects/rztest/node_modules/gulp-concat/node_modules/readable-stream/lib/_stream_readable.js:664:5) at emitNone (events.js:80:13) at DestroyableTransform.emit (events.js:179:7) at emitReadable (/Users/danielrvt/IdeaProjects/rztest/node_modules/gulp-concat/node_modules/readable-stream/lib/_stream_readable.js:448:10) at emitReadable (/Users/danielrvt/IdeaProjects/rztest/node_modules/gulp-concat/node_modules/readable-stream/lib/_stream_readable.js:444:5) at readableAddChunk (/Users/danielrvt/IdeaProjects/rztest/node_modules/gulp-concat/node_modules/readable-stream/lib/_stream_readable.js:187:9)
最佳答案
使固定
问题 #37 中包含的修复程序已发布,因此不再需要以下解决方法。执行 npm update
后,该错误不应再出现.
原因
此错误是由 gulp-header
中的最近更新 (v1.8.3) 引起的图书馆。
安 issue已经创建供您跟踪。gulp-angular-templatecache
间接依赖于 gulp-header
,在一些评论中提到了这一点。
解决方法
在发布修复程序之前,您可以为 gulp-header
的先前版本添加节点依赖项。到 package.json。但是,票已关闭,因此应该很快就会发布。
"dependencies": {
"gulp-header": "1.8.2"
}
关于angularjs - "No such file or directory,/src/app/templateCacheHtml.js"运行 gulp build 时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37890361/
我正在使用 gulp-angular yeoman 生成器,如果我创建一个新项目,然后运行 gulp build 或 gulp serve:dist 我会得到这个错误: 每当我尝试构建我的项目时,
我是一名优秀的程序员,十分优秀!