Symlinked gulpfile.js works in a wrong directory
See original GitHub issueAftermath of https://github.com/gulpjs/gulp/issues/704
Gulp executes tasks of a symlinked gulpfile.js
in a context of a directory where the original file is.
$ ln -s ~/docs/beta/gulpfile.js gulpfile.js
$ gulp sass
[02:37:01] Working directory changed to ~/docs/beta
[02:37:02] Using gulpfile ~/docs/beta/gulpfile.js
[02:37:02] Starting 'sass'...
[02:37:02] Finished 'sass' after 1.52 ms
Issue Analytics
- State:
- Created 9 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
symlink() - gulp.js
If isDirectory() returns false then a 'file' link is created, otherwise a 'junction' or 'dir' link is created depending on the value of...
Read more >Gulp watch task triggers too often because of symlink in folder
I have a gulp watch that should run when .pcss files get saved and then run postcss to generate .css files in the...
Read more >gulp@1 - gulp v1 task | Microsoft Learn
Run the gulp Node.js streaming task-based build system. ... Path to an alternative gulp.js , relative to the working directory.
Read more >The magic behind npm link - Medium
When you run npm link in a module's root directory, npm creates a symbolic link from your “global node_modules” directory to the local...
Read more >glob - npm
"Globs" are the patterns you type when you do stuff like ls *.js on the command line, ... It does not crawl symlinked...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For what it’s worth, I’m encountering this problem right now and am having to do a bit of hackery to get it to work. In particular, we have this lovely environment that puts Bazel in Docker containers, and I have to manually symlink the node_module directories into some other test directory so that Gulp doesn’t panic. 😦 Not sure what the solution is, but wanted to chime in that this is still an issue. Sorry I can’t be of more help.
Ah, of course. Try
npm update
again.