Tools: cli 0.9.0 fails: Cannot find module '..'

Created on 26 May 2016  路  11Comments  路  Source: Polymer/tools

node version: 6.2.0
Polymer-cli version: 0.9.0

Error message:

$ polymer init
module.js:442
    throw err;
    ^

Error: Cannot find module '..'
    at Function.Module._resolveFilename (module.js:440:15)
    at Function.Module._load (module.js:388:25)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at /home/q/.nvm/versions/node/v6.2.0/lib/node_modules/polymer-cli/bin/polymer.js:19:36
    at /home/q/.nvm/versions/node/v6.2.0/lib/node_modules/polymer-cli/node_modules/resolve/lib/async.js:46:14
    at process (/home/q/.nvm/versions/node/v6.2.0/lib/node_modules/polymer-cli/node_modules/resolve/lib/async.js:173:43)
    at ondir (/home/q/.nvm/versions/node/v6.2.0/lib/node_modules/polymer-cli/node_modules/resolve/lib/async.js:188:17)
    at load (/home/q/.nvm/versions/node/v6.2.0/lib/node_modules/polymer-cli/node_modules/resolve/lib/async.js:69:43)
    at onex (/home/q/.nvm/versions/node/v6.2.0/lib/node_modules/polymer-cli/node_modules/resolve/lib/async.js:92:31)
cli Critical Accepted Bug

Most helpful comment

Should be fixed in 0.10.0 now. Sorry for the problems!

All 11 comments

@justinfagnani @FredKSchott Yeah, the 0.9 version introduce this one

Same on node v4.4.5

Also on 4.4.5. It's not just init, it's polymer cli.

I also have this problem. Introduced with 0.9.0.

I'll look at this ASAP

+1

After $ npm -g install polymer-cli there's no "lib" directory anymore ...

This is caused by https://github.com/Polymer/polymer-cli/issues/192

The depcheck task called inside of build-all is failing, causing the actually build task to never be run.

short-term fix submitted here: https://github.com/Polymer/polymer-cli/pull/211

Proper fix submitted and reviewed here: #212
We're just waiting for tests to run/pass and then we'll cut a new version, hang tight

Should be fixed in 0.10.0 now. Sorry for the problems!

Was this page helpful?
0 / 5 - 0 ratings