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 issueHi 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:
- Created 8 years ago
- Comments:6
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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:
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
stringjs dependency will be removed in upcoming release