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.

Cannot add any other Node Libraries in the embark-demo

See original GitHub issue

I was just trying to add the ms-sql node module to the embark-demo application to connect to the MS SQL database however, i am not able to load the libraries via the require method.

Is there something that I need to do?

The command i ran was npm install mssql@alpha --save and then tried to load via the method. require('mssql')

Can anybody guide me on this. Am i missing something here?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
syedshahzebhasnaincommented, Mar 13, 2017

Tried doing this. Both requires work in harmony! So i guess something with embark demo is fishy.

0reactions
iurimatiascommented, Jun 22, 2018

npm modules can be added to embark projects now easily. However mssql it’s more apropriate for a pure nodejs based project (and not a web dapp)

Read more comments on GitHub >

github_iconTop Results From Across the Web

cannot find module [Node npm Error Solved] - freeCodeCamp
you're trying to import an item from a module you don't have installed in your project directory; you're importing some things from an...
Read more >
How do I import global modules in Node? I get "Error
I am trying to setup Node on Mac OSX Lion. It all seems to work ok, but I can't seem to import anything...
Read more >
How To Use Node.js Modules with npm and package.json
js organizes this complexity using modules, which are any single JavaScript files containing functions or objects that can be used by other ......
Read more >
How do I build a Lambda deployment package for Node.js?
I created an AWS Lambda function in Node.js, but I get a "Cannot find ... Note: Most Node.js modules are platform-independent, but some...
Read more >
Creating Node.js modules - npm Docs
Create the file that will be loaded when your module is required by another application. In the file, add a function as a...
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