简体   繁体   English

语义ui的“ gulp build”给出错误“ ENOENT:没有这样的文件或目录”

[英]`gulp build` for semantic ui is giving error 'ENOENT: no such file or directory'

version: 版:

gulp@3.9.1 gulp@3.9.1

I have installed semantic-ui through npm install and given default settings during interactive setup process. 我已经通过npm install安装了semantic-ui ,并在交互式安装过程中设置了默认设置。

But when i do gulp build from the /semantic folder i am getting following error: 但是当我从/semantic文件夹中进行gulp build时,出现以下错误:

[20:52:27] Starting 'build'...
Building Semantic
[20:52:27] Starting 'build-javascript'...
Building Javascript
[20:52:27] Starting 'build-css'...
Building CSS
[20:52:27] Starting 'build-assets'...
Building assets
[20:52:28] Created: dist/components/site.js
[20:52:28] Created: dist/components/site.min.js
[20:52:28] Created: dist/components/form.js
[20:52:28] Created: dist/components/form.min.js
[20:52:28] Created: dist/components/accordion.js
[20:52:28] Created: dist/components/accordion.min.js
[20:52:28] Created: dist/components/checkbox.js
[20:52:28] Created: dist/components/dimmer.js
[20:52:28] Created: dist/components/checkbox.min.js
[20:52:28] Created: dist/components/dimmer.min.js
[20:52:28] Created: dist/components/dropdown.js
[20:52:29] Created: dist/components/embed.js
[20:52:29] Created: dist/components/dropdown.min.js
[20:52:29] Created: dist/components/reset.css
[20:52:29] Created: dist/components/reset.min.css
[20:52:29] Created: dist/components/modal.js
[20:52:29] Created: dist/components/embed.min.js
[20:52:29] Created: dist/components/modal.min.js

Later this error throws up 后来这个错误抛出

[20:52:31] Starting 'package uncompressed js'...
[20:52:31] Finished 'build-javascript' after 4.23 s
[20:52:31] Created: dist/components/container.min.css
[20:52:31] Created: dist/components/container.css
fs.js:839
  return binding.lstat(pathModule._makeLong(path));
                 ^

Error: ENOENT: no such file or directory, lstat '/Users/venkat299/code/harvest_api/harvest_server/semantic/dist/components/semantic.min.js'

There is an issue with gulp-header 1.8.3 causing this. gulp-header 1.8.3引起此问题。

https://github.com/tracker1/gulp-header/issues/37 https://github.com/tracker1/gulp-header/issues/37

Add "gulp-header": "1.8.2" directly to your package.json and you should be fine. "gulp-header": "1.8.2"直接添加到package.json ,就可以了。

Remove the ^ from the version number if it's already there, it pushes you up to the next minor version, which will cause the problem. 从版本号中删除^ (如果已存在),它会将您推送到下一个minor版本,这将导致问题。

The solution that worked for me (by DaniVarga here ) was this: 对我来说(由DaniVarga工作的解决方案在这里 )是这样的:

npm uninstall gulp-header
npm install gulp-header@1.8.2 --save

... then ... ... 然后 ...

gulp build

Does adding "gulp-header": "1.8.2", to your package.json help? 在package.json中添加"gulp-header": "1.8.2",是否有帮助?

See https://github.com/miickel/gulp-angular-templatecache/issues/124 . 参见https://github.com/miickel/gulp-angular-templatecache/issues/124

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 语义UI-`gulp build`返回JS错误 - Semantic UI - `gulp build` returns JS error React / Redux项目给了我错误“无法编译。 模块构建失败:错误:ENOENT:没有这样的文件或目录'' - React/Redux project giving me the error 'Failed to compile. Module build failed: Error: ENOENT: no such file or directory'' AngularJS $资源writeFileSync给出错误:ENOENT:没有这样的文件或目录,打开 - AngularJS $resource writeFileSync giving Error: ENOENT: no such file or directory, open 错误:ENOENT:没有这样的文件或目录 - Error: ENOENT: no such file or directory Webpack / Babel 错误:模块构建失败:(SystemJS)ENOENT:没有这样的文件或目录 - Webpack / Babel Error: Module build failed: (SystemJS) ENOENT: no such file or directory 模块构建失败:错误:ENOENT:没有这样的文件或目录 - React - Module build failed: Error: ENOENT: no such file or directory - React 错误:ENOENT:没有这样的文件或目录,统计 - Error: ENOENT: no such file or directory, stat 未捕获的错误:ENOENT,没有这样的文件或目录 - Uncaught Error: ENOENT, no such file or directory Javascript - 错误:ENOENT:没有这样的文件或目录 - Javascript - Error: ENOENT: no such file or directory 错误:ENOENT:没有那个文件或目录,打开 - Error: ENOENT: no such file or directory, open
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM