Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Error when gulp serve #6

Closed
framled opened this issue Sep 24, 2016 · 11 comments
Closed

Error when gulp serve #6

framled opened this issue Sep 24, 2016 · 11 comments

Comments

@framled
Copy link

framled commented Sep 24, 2016

Hi, I was watching your course at udacity about promise, and the xhr-start branch I get this error when I try to serve with gulp.

  • vinyl version 0.5.3
  • nodejs version 6.3.1
  • npm version 3.10.3
[12:47:40] Using gulpfile ~/workspace/HTML/exoplanet-explorer/gulpfile.js
[12:47:40] Starting 'styles'...
[12:47:41] Starting 'elements'...
[12:47:41] Starting 'images'...
[12:47:41] Finished 'elements' after 189 ms
~/workspace/HTML/exoplanet-explorer/node_modules/vinyl-fs/node_modules/vinyl/index.js:153
    if (!this.path) throw new Error('No path specified! Can not get relative.');
                    ^

Error: No path specified! Can not get relative.
    at File.Object.defineProperty.get (
~/workspace/HTML/exoplanet-explorer/node_modules/vinyl-fs/node_modules/vinyl/index.js:153:27)
    at DestroyableTransform.saveFile [as _transform] (~/workspace/HTML/exoplanet-explorer/node_modules/vinyl-fs/lib/dest/index.js:36:48)
    at DestroyableTransform.Transform._read (~/workspace/HTML/exoplanet-explorer/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_transform.js:184:10)
    at DestroyableTransform.Transform._write (~/workspace/HTML/exoplanet-explorer/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_transform.js:172:12)
    at doWrite (~/workspace/HTML/exoplanet-explorer/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_writable.js:237:10)
    at clearBuffer (~/workspace/HTML/exoplanet-explorer/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_writable.js:316:5)
    at onwrite (~/workspace/HTML/exoplanet-explorer/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_writable.js:274:7)
    at WritableState.onwrite (~/workspace/HTML/exoplanet-explorer/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_writable.js:106:5)
    at afterTransform (~/workspace/HTML/exoplanet-explorer/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_transform.js:104:5)
    at TransformState.afterTransform (~/workspace/HTML/exoplanet-explorer/node_modules/vinyl-fs/node_modules/readable-stream/lib/_stream_transform.js:79:12)
    at done (~/workspace/HTML/exoplanet-explorer/node_modules/vinyl-fs/lib/dest/writeContents/index.js:11:7)
    at FSReqWrap.oncomplete (fs.js:123:15)

any solution for this?

@nikbabchenko
Copy link

Having the same issue(

@forbaz
Copy link

forbaz commented Mar 4, 2017

I have the same error, and i just added line
"vinyl": "0.3.0",
in package.json file, and run
npm install

@nikbabchenko
Copy link

Thank you bazgyrt!
It's so sad that contributors don't answer (

@elafrikano
Copy link

@bazgyrt your solution did not work for me! :(

@forbaz
Copy link

forbaz commented May 9, 2017

@elafrikano try this
npm install vinyl@0.3.0 --save-dev

@elafrikano
Copy link

@bazgyrt thanks you very much, it's worked!

@framled
Copy link
Author

framled commented Jun 29, 2017

I will try this solution at weekend.
I hope this works
Thanks you guys.

@japrogramer
Copy link

japrogramer commented Jul 13, 2017

@framled @nikbabchenko @bazgyrt @elafrikano

alias npm-exec='PATH=$(npm bin):$PATH'
npm-exec gulp serve

edit: misread your issue,
assumed gulp was installed locally.

@framled
Copy link
Author

framled commented Aug 19, 2017

this, works for me https://stackoverflow.com/a/40640752

@SalvadorP
Copy link

I had a different problem, related to svgo.yml file.
This worked for me: svg/svgo#622

@forbiddenvoid
Copy link

Unable to replicate this now. Feel free to open a new issue if it comes up again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants