question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NodeJS API, Cannot find module 'yamlparser'

See original GitHub issue

When trying the NodeJS API, I get the following error: [Error: Cannot find module 'yamlparser' from 'mybuildpath/node_modules/useragent/lib']

Steps to reproduce (as suggested in readme):

  1. npm install polyfill-service --save
  2. npm install
  3. require('polyfill-service').listAllPolyfills();

yamlparser is a dev dependency from the useragent module. From the old info (https://github.com/3rd-Eden/useragent/issues/29) I could find it’s intentionally a dev dependency when you use it you have to include it yourself in your package?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
izar89commented, Apr 11, 2017

I think I found the problem. I had a version mismatch between n and nvm for managing node versions(both where installed and used). I’m now using the proper latest version of node. Thanks for checking and sorry for wasting your time. Thanks :d

0reactions
JakeChampioncommented, Apr 11, 2017

That’s okay, I’m happy you have it working 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I resolve "Cannot find module" error using Node.js?
Using npm install installs the module into the current directory only (in a subdirectory called node_modules ). Is app.js located under ...
Read more >
yaml-parser - npm
yaml-parser is a fork of js-yaml whose goal is to remove command-line functionalities in order to provide a leaner module.
Read more >
Error: Cannot find module in JavaScript [SOLVED]
We can solve Error: Cannot find module by installing the missing module. We can use npm tool to install the mising module.
Read more >
useragent - high performance user agent parser for Node.js
API. Include the useragent parser in you node.js application: ... If we cannot find the family, they will default to Other .
Read more >
js-yaml | Yarn - Package Manager
Important: This documentation covers modern versions of Yarn. For 1.x docs, see classic.yarnpkg.com. Yarn.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found