Skip to content
This repository was archived by the owner on Dec 29, 2022. It is now read-only.

Issue running Polymer Started Kit 1.0.0 #110

Closed
tjsavage opened this issue Jun 3, 2015 · 16 comments
Closed

Issue running Polymer Started Kit 1.0.0 #110

tjsavage opened this issue Jun 3, 2015 · 16 comments
Assignees

Comments

@tjsavage
Copy link
Contributor

tjsavage commented Jun 3, 2015

I downloaded polymer-starter-kit-dependencies-checked-in-1.0.0.zip and tried gulp serve. I got an "Unhandled rejection Error". I bypassed this by adding an error handler for the "images" gulp task and printed the error to console. The error I see is below:

Error in plugin 'gulp-cache'
Message:
spawn ENOENT
Details:
code: ENOENT
errno: ENOENT
syscall: spawn
fileName: /Users/abishek/work/dev/onroad/onroad-polymer/app/images/touch/apple-touch-icon.png

Though the server started up after handling the error, wondering what needs to be done here to fix this nicely.

@addyosmani
Copy link
Member

Someone else ran into this yesterday and worked around it by deleting the images directory.

Could you try commenting out the caching lines in the 'images' task of your gulpfile?

//.pipe($.cache($.imagemin({ progressive: true, interlaced: true })))

and see if that solves the issue?

If not it may be worth also trying the non-checked in deps version.

@nafem
Copy link

nafem commented Jun 3, 2015

I get a similar unhandled error event. If I comment out the image caching in gulpfile.js, it completes the build but then throws:

events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn EACCES
at errnoException (child_process.js:1011:11)
at Process.ChildProcess._handle.onexit (child_process.js:802:34)

@addyosmani
Copy link
Member

@nafem are you using the version with checked in deps or without?

@nafem
Copy link

nafem commented Jun 3, 2015

With checked in deps. Running Ubuntu 14.04
I have also tried without deps but get the following error when running npm install

npm WARN package.json [email protected] No repository field....

npm ERR! [email protected] postinstall: node scripts/postinstall.js
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is most likely a problem with the web-component-tester package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/postinstall.js
npm ERR! You can get their info via:
npm ERR! npm owner ls web-component-tester
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.13.0-32-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /home/platform/polymer-starter-non-dep/polymer-starter-kit-1.0.1
npm ERR! node -v v0.10.38
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0

But this is probably a different issue

@addyosmani
Copy link
Member

@nafem it looks like you have an older version of Node and npm. Could you upgrade to the latest Node and try again? https://nodejs.org/

@fones
Copy link

fones commented Jun 3, 2015

After upgrading node to last version problem still occurs (macosx)
When comment out this line
.pipe($.cache($.imagemin({ progressive: true, interlaced: true })))
it works!

@koenhendriks
Copy link

I'm running Linux Mint 17 with latest NodeJs (v0.12.4) and npm (2.10.1)

I tried this with the checked in dependencies version 1.0.1 and i still have this issue.

Here is the log:

[20:54:57] Using gulpfile ~/PhpstormProjects/Polymer-kit/gulpfile.js
[20:54:57] Starting 'styles'...
[20:54:58] Starting 'elements'...
[20:54:58] Starting 'images'...
[20:54:58] 'elements' all files 0 B
[20:54:58] Finished 'elements' after 819 ms
Unhandled rejection Error: spawn /home/koen/PhpstormProjects/Polymer-kit/node_modules/gulp-imagemin/node_modules/imagemin/node_modules/imagemin-optipng/node_modules/optipng-bin/vendor/optipng ENOENT
    at exports._errnoException (util.js:746:11)
    at Process.ChildProcess._handle.onexit (child_process.js:1053:32)
    at child_process.js:1144:20
    at process._tickCallback (node.js:355:11)
[20:54:58] 'styles' all files 98 B
[20:54:58] Finished 'styles' after 1.18 s

if i comment out .pipe($.cache($.imagemin({ progressive: true, interlaced: true }))) i get a new error:

[20:55:43] Using gulpfile ~/PhpstormProjects/Polymer-kit/gulpfile.js
[20:55:43] Starting 'styles'...
[20:55:43] Starting 'elements'...
[20:55:43] Starting 'images'...
[20:55:43] 'elements' all files 0 B
[20:55:43] Finished 'elements' after 20 ms
[20:55:43] 'styles' all files 98 B
[20:55:43] Finished 'styles' after 362 ms
[20:55:43] 'images' all files 25.09 kB
[20:55:43] Finished 'images' after 67 ms
[20:55:43] Starting 'serve'...
[20:55:43] Finished 'serve' after 46 ms
[BS] Access URLs:
 ------------------------------------
       Local: http://localhost:3000
    External: http://192.168.2.3:3000
 ------------------------------------
          UI: http://localhost:3001
 UI External: http://192.168.2.3:3001
 ------------------------------------
[BS] Serving files from: .tmp
[BS] Serving files from: app
child_process.js:1162
    throw errnoException(err, 'spawn');
          ^
Error: spawn EACCES
    at exports._errnoException (util.js:746:11)
    at ChildProcess.spawn (child_process.js:1162:11)
    at Object.exports.spawn (child_process.js:995:9)
    at module.exports (/home/koen/PhpstormProjects/Polymer-kit/node_modules/opn/index.js:58:24)
    at Object.utils.open (/home/koen/PhpstormProjects/Polymer-kit/node_modules/browser-sync/lib/utils.js:170:23)
    at Object.utils.openBrowser (/home/koen/PhpstormProjects/Polymer-kit/node_modules/browser-sync/lib/utils.js:160:23)
    at EventEmitter.events.service:running (/home/koen/PhpstormProjects/Polymer-kit/node_modules/browser-sync/lib/internal-events.js:45:23)
    at EventEmitter.emit (events.js:129:20)
    at /home/koen/PhpstormProjects/Polymer-kit/node_modules/browser-sync/lib/browser-sync.js:260:19
    at /home/koen/PhpstormProjects/Polymer-kit/node_modules/browser-sync/node_modules/async-each-series/index.js:15:40

@addyosmani
Copy link
Member

@koenhendriks does this issue happen with the non-checked in deps version too?

@koenhendriks
Copy link

@addyosmani just tested, I don't get any errors with the non-checked in deps.

@addyosmani
Copy link
Member

Thanks for confirming. I think we may be out of luck with the checked-in dependencies version. When we would generate the zip for it on a *nix machine, Windows users would run into issues with similar errors and when generating on Windows, the opposite appears to happen.

To minimize confusion, I'm considering deprecating the checked-in deps version as an option for now.

@fones you mentioned you were on Mac. Did you have any issues with the non-checked in deps version?

@fones
Copy link

fones commented Jun 4, 2015

@addyosmani I've tried only without deps. I've checked out master branch at commit 6078e4e7b6 and only issue with .pipe($.cache($.imagemin({ progressive: true, interlaced: true }))) occurs.

@addyosmani addyosmani added the P0 label Jun 4, 2015
@addyosmani
Copy link
Member

Hey folks. If you're still running into this issue, I just wanted to mention we've updated our README to be a little more specific with Node versions. We currently recommend Node 0.12.x and above. To check/update accordingly, please see https://github.com/PolymerElements/polymer-starter-kit#prerequisites-for-everyone

@arthurvr
Copy link
Contributor

Is anyone still having this issue on latest Node using the latest PSK?

@cyberabis
Copy link

With the latest kit, this is solved for me.

@addyosmani
Copy link
Member

Thanks @cyberabis. Would be great to get a few more confirmations and we can then close this.

@koenhendriks
Copy link

Worked for me to!

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

No branches or pull requests

7 participants