After updating to 1.4.2.5 meteor update
and meoter npm update
I’ve got the deployment error:
/var/www/designbase/bundle/programs/server/node_modules/fibers/future.js:280
throw(ex);
^
Error: Cannot find module 'lodash/object/assign'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/var/www/designbase/bundle/programs/server/npm/node_modules/xmlbuilder/lib/index.js:5:12)
at Object.<anonymous> (/var/www/designbase/bundle/programs/server/npm/node_modules/xmlbuilder/lib/index.js:14:4)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/var/www/designbase/bundle/programs/server/npm/node_modules/aws-sdk/lib/xml/builder.js:2:15)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/var/www/designbase/bundle/programs/server/npm/node_modules/aws-sdk/lib/core.js:42:14)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
</pre>
Problem is that I have "lodash": "^4.17.4"
in my package.json. What I’ve tried at this moment:
rm -rf /node_modules/
meteor npm i
meteor reset
rm -rf ~/.meteor
curl https://install.meteor.com/ | sh
On the server in server folder /bundle/programs/server
:
npm i
npm i -g lodash
And all these didn’t help at all. Any ideas what’s going on and how to fix it? Local version works without any troubles. (I deploy with pushion passenger)