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.

Error: Can't find npm module 'string'. Did you forget to call 'Npm.depends' in package.js within the 'aldeed_simple-schema' package?

See original GitHub issue

Hi Team,

While deploying on production we are getting following error, Please help me if possible.

Error: Can't find npm module 'string'. Did you forget to call 'Npm.depends' in package.js within the 'aldeed_simple-schema' package?

at Object.Npm.require (/opt/project/app/programs/server/boot.js:117:17)[0.0.0.0] 
[0.0.0.0]     at expectedType (packages/aldeed:simple-schema/simple-schema.js:8:1)[0.0.0.0] 
[0.0.0.0]     at /opt/project/app/programs/server/packages/aldeed_simple-schema.js:2015:4[0.0.0.0] 
[0.0.0.0]     at /opt/project/app/programs/server/packages/aldeed_simple-schema.js:2983:3[0.0.0.0] 
[0.0.0.0]     at /opt/project/app/programs/server/boot.js:175:10[0.0.0.0] 
[0.0.0.0]     at Array.forEach (native)[0.0.0.0] 
[0.0.0.0]     at Function._.each._.forEach         (/opt/project/app/programs/server/node_modules/underscore/underscore.js:79:11)[0.0.0.0] 
[0.0.0.0]     at /opt/project/app/programs/server/boot.js:86:5[0.0.0.0] 
[0.0.0.0] error: Forever detected script exited with code: 8[0.0.0.0] 
[0.0.0.0] error: Script restart attempt #27[0.0.0.0] 

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ssteinerxcommented, Jun 15, 2015

I have a branch that solves this issue for me. I did have to install the string module by hand in the meteor-simple-schema; I’ll leave it for @aldeed to diddle with the installation files if necessary.

https://github.com/ssteinerx/meteor-simple-schema/tree/string-fix

Check the string-fix branch out into your packages directory of your app, remove aldeed:simple-schema, then add it again and it will pull the local copy. If something goes wrong, try manually installing the string module with:

npm install string

Then meteor remove/add again.

Please let me know whether this solves your issues and, if so, I’ll submit a pull request.

Thanks,

ssteinerX

0reactions
aldeedcommented, Nov 13, 2015

stringjs dependency will be removed in upcoming release

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Can't find npm module 'string'. Did you forget to ... - GitHub
Error : Can't find npm module 'string'. Did you forget to call 'Npm.depends' in package.js within the 'aldeed_simple-schema' package? at Object.
Read more >
[Error: Can't find npm module 'react/package.json'. Did you ...
"[Error: Can't find npm module 'react/package.json'. Did you forget to call 'Npm.depends' in package.js within the 'modules-runtime' package?]" ...
Read more >
package.json - npm Docs
Description. This document is all you need to know about what's required in your package.json file. It must be actual JSON, not just...
Read more >
How To Use Node.js Modules with npm and package.json
In this tutorial, you will manage packages with npm. ... about the project and help you manage the project's dependent Node.js modules.
Read more >
cannot find module [Node npm Error Solved] - freeCodeCamp
If you're a developer that works with Node JS and JavaScript libraries and frameworks like React, Vue, and Angular, then you might have...
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