用于语义UI的`gulp build`给出错误'ENOENT:no such file or directory' [英] `gulp build` for semantic ui is giving error 'ENOENT: no such file or directory'
问题描述
gulp@3.9.1
我已经安装了 semantic-ui
到 npm install
,并在交互式设置过程中给出了默认设置。 / p>
但是,当我从 / semantic
执行 gulp build
文件夹我得到以下错误:
[20:52:27]启动'build'...
Building语义
[20:52:27]启动'build-javascript'...
构建Javascript
[20:52:27]启动'build-css'...
建立CSS
[20:52:27]启动'build-assets'...
建立资产
[20:52:28] Created:dist / components / site.js
[20:52:28]创建:dist / components / site.min.js
[20:52:28]创建:dist / components / form.js
[20:52: 28]创建:dist / components / form.min.js
[20:52:28]创建:dist / components / accordion.js
[20:52:28]创建:dist / components / accordion.min.js
[20:52:28]创建:dist / c omponents / checkbox.js
[20:52:28]创建:dist / components / dimmer.js
[20:52:28]创建:dist / components / checkbox.min.js
[20:52:28]创建:dist / components / dimmer.min.js
[20:52:28]创建:dist / components / dropdown.js
[20:52:29]创建:dist / components / embed.js
[20:52:29]创建:dist / components / dropdown.min.js
[20:52:29]创建:dist / components / reset。 css
[20:52:29]创建:dist / components / reset.min.css
[20:52:29]创建:dist / components / modal.js
[20: 52:29]创建:dist / components / embed.min.js
[20:52:29]创建:dist / components / modal.min.js
后来这个错误抛出了
[20:52: 31]开始'包未压缩js'...
[20:52:31]在4.23 s
[20:52:31]之后完成'build-javascript'创建:dist / components / container。 min.css
[20点52分31秒]建立:DIST /组件/ container.css
fs.js:839
返回binding.lstat(pathModule._makeLong(路径));
^
错误:ENOENT:没有这样的文件或目录,LSTAT '/Users/venkat299/code/harvest_api/harvest_server/semantic/dist/components/semantic.min.js'
有与 gulp-一个问题header 1.8.3
造成这种情况。
https://github.com/tracker1/gulp-header/issues/37
添加gulp-header :1.8.2
直接添加到您的 package.json
,您应该没问题。
从版本号中删除 ^
(如果它已经存在),它会将您推到下一个次要
版本,这会导致问题。
version:
gulp@3.9.1
I have installed semantic-ui
through npm install
and given default settings during interactive setup process.
But when i do gulp build
from the /semantic
folder i am getting following error:
[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.
https://github.com/tracker1/gulp-header/issues/37
Add "gulp-header": "1.8.2"
directly to your package.json
and you should be fine.
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.
这篇关于用于语义UI的`gulp build`给出错误'ENOENT:no such file or directory'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!