gulp build is broken on master #150
Comments
I am seeing the same issue. The entire src directory is being moved to .tmp rather than the contents. |
After the update of glob-parent this issue happens. To temporarily fix try change the version of the glob-parent to 3.0.0 in node_modules > glob-stream > node_modules > glob-parent. |
I'm not sure I follow what you're saying. Under node_modules>glob-stream>node_modules>glob-parent, I have version 3.0.0 |
This is very strange. It works on my Mac, but not on Windows. Both are running Node v4.6.1 |
In glob-parent folder your index.js is this? |
for temporary solution i ran and changed glob parent for glob stream to be in version 3.0.0. Then just run npn install again. Should work fine. |
My node_modules/glob-stream/node_modules/glob-parent/index.js looks like this
|
This code is latest version (3.0.1). Try changing your index.js with (version 3.0.0): 'use stric';
var path = require('path');
var isglob = require('is-glob');
module.exports = function globParent(str) {
str += 'a'; // preserves full path in case of trailing path separator
do {str = path.dirname(str)} while (isglob(str));
return str;
}; Or try to run commands @dovydas55 said. |
I haven't used npm shrinkwrap before, so I wasnt sure of the full extent of what he did. I'm still learning NPM and front end dev. I'll try your code in the office tomorrow. |
Confirming changing to the v3.0.0 index.js for glob-parent works for me. Thanks! |
I can also confirm that editing the index.js for glob-parent worked. |
I try to reproduce your error on master. Everything works. :-/ Can you provide more information like a paste of your |
Only Windows affect. Linux and Mac OS works fine. |
I can confirm this is true between my windows 8.1 laptop that i use for work and my personal MBP running OS X Yosemite (10.11) |
Same error i use {
"name": "proyect",
"dependencies": {
"path-dirname": {
"version": "1.0.2",
"from": "path-dirname@>=1.0.0 <2.0.0",
"resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz"
},
"glob-stream" :{
"version": "5.3.5",
"dependencies" : {
"glob-parent" : {
"version" : "3.0.0"
}
}
}
}
} |
^^^ Make sure you delete your node_modules and try again. That's what I needed to do. Any ideas on why this is happening though? Like I get that its an update in |
use @dovydas55 solution with @ripper2hl comments. |
Yes, run npm shrinkwrap and change version of the glob-parent to 3.0.0 in glob-stream (npm-shrinkwrap.json file). Run npm install again. |
This problem made me crazy! Finally fixed looking at @ripper2hl solution. Running npm shrinkwrap will create a file without any dependency, then you should change to this code (or add this dependency version to your current shrinkwrap file)
|
Hey guys, the glob-stream issue (3.0.1 to 3.0.0) fix my problem for npm run serve, .tmp folder is ok(without extra src folder), but when i run npm run serve:dist or npm run build i get the same error @dovydas55 stated in the first comment, but instead of complaining about index.html, glob complains about templateCache.js, anyone with the same issue? |
Hi, Finally try this on windows, and... All worked fine... I checked glob-stream, I got 5.3.5 depending on glob-parent 3.1.0. Perhaps, glob-parent 3.1.0 update fixed the problem, can you all check that? |
yoman configuration:
running gulp build crashes with following error:
[13:16:29] Error: File not found with singular glob: dir.tmp\index.html
at Glob. (C:\Users\ds\Desktop\dir\node_modules\glob-stream\index.js:41:11)
at Glob.g (events.js:260:16)
at emitOne (events.js:77:13)
at Glob.emit (events.js:169:7)
at Glob._finish (C:\Users\ds\Desktop\dir\node_modules\glob-stream\node_modules\glob\glob.js:172:8)
at done (C:\Users\ds\Desktop\dir\node_modules\glob-stream\node_modules\glob\glob.js:159:12)
at Glob._processSimple2 (C:\Users\ds\Desktop\dir\node_modules\glob-stream\node_modules\glob\glob.js:652:12)
at C:\Users\ds\Desktop\dir\node_modules\glob-stream\node_modules\glob\glob.js:640:10
at Glob.stat2 (C:\Users\ds\Desktop\dir\node_modules\glob-stream\node_modules\glob\glob.js:736:12)
at lstatcb (C:\Users\ds\Desktop\dir\node_modules\glob-stream\node_modules\glob\glob.js:728:12)
at RES (C:\Users\ds\Desktop\dir\node_modules\inflight\inflight.js:31:16)
at f (C:\Users\ds\Desktop\dir\node_modules\once\once.js:25:25)
at FSReqWrap.oncomplete (fs.js:82:15)
[13:16:29] 'build' errored after 1.15 s
Please offer a solution as master is unstable
The text was updated successfully, but these errors were encountered: