Tools: Error: Cannot find module 'js-yaml'

Created on 18 May 2018  路  2Comments  路  Source: Polymer/tools

I am trying to convert Polymer 2 projects to Polymer 3. Even with my simplest project--a single component, no mixins, checked out clean from its Git repo--I get the following error:

````
$ bower cache clean && bower install
bower not-cached https://github.com/Polymer/polymer.git#^2.0.0
...

$ modulizer --out .
Error: Cannot find module 'js-yaml'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/Users/thad/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/src/travis-config.ts:16:1)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
````

I am using polymer-modulizer v0.4.0, Node v8.11.1, and npm v5.8.0 on macOS 10.13.4 (High Sierra).

This error persists after I run npm install js-yaml to install js-yaml v3.11.0.

modulizer wontfix

Most helpful comment

Duplicate of #436 which is fixed but not yet released

All 2 comments

Duplicate of #436 which is fixed but not yet released

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings