Comments (2)
Is this a possible fix for you?
from hapi-sequelize.
Hey team, I'm using NPM 5.x and also facing an issue which is think is related. My guess is that it's due to your npm-shrinkwrap.json
that contains way too many extraneous dependencies (was it because of an older version of Sequelize?), 180 to be exact. IMHO this should be deleted or replaced by a cleaner package-lock.json
.
Initially after npm install
, the npm module size is 49 Mb and is indeed the biggest of my project.
So I manually went cleaning the extraneous packages into my generated package-lock.json
, and ended with these:
"hapi-sequelize": {
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/hapi-sequelize/-/hapi-sequelize-3.0.4.tgz",
"integrity": "sha1-MRExUK9LWT6Pfgk7IvEaanaZBNY=",
"dependencies": {
"balanced-match": {
"version": "0.3.0",
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.3.0.tgz",
"integrity": "sha1-qRzdHr7xqGZZ5w/03vAWJfwtZ1Y="
},
"brace-expansion": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.2.tgz",
"integrity": "sha1-8hRF0EiLZY4nce/YcO/1HfKfBO8="
},
"concat-map": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
"integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s="
},
"glob": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/glob/-/glob-7.0.3.tgz",
"integrity": "sha1-CqI1kxpKlqwT1g/6wvuHe9btT1g="
},
"hoek": {
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/hoek/-/hoek-3.0.4.tgz",
"integrity": "sha1-Jorf9mu2aVxptHiaiLHghHw/MSM="
},
"inflight": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.4.tgz",
"integrity": "sha1-bLtFIevVHODsCpNr/XZX736bFyo="
},
"inherits": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz",
"integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE="
},
"isemail": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/isemail/-/isemail-2.1.0.tgz",
"integrity": "sha1-f1Qz5GnYj0b7gfg/USDzbfA44v8="
},
"joi": {
"version": "8.1.0",
"resolved": "https://registry.npmjs.org/joi/-/joi-8.1.0.tgz",
"integrity": "sha1-WhkJTM5oAJzhGDHzutOh4eCvotE=",
"dependencies": {
"hoek": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/hoek/-/hoek-4.0.0.tgz",
"integrity": "sha1-NCm9h9lUj9RU5PbIVCiZropB30o="
}
}
},
"minimatch": {
"version": "2.0.10",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-2.0.10.tgz",
"integrity": "sha1-jQh8OcazjAAbl/ynzm0OHoCvusc="
},
"moment": {
"version": "2.11.2",
"resolved": "https://registry.npmjs.org/moment/-/moment-2.11.2.tgz",
"integrity": "sha1-h5aOX5WsA4wuQqyVnHWBnNP1KQE="
},
"once": {
"version": "1.3.3",
"resolved": "https://registry.npmjs.org/once/-/once-1.3.3.tgz",
"integrity": "sha1-suJhVXzkwxTsgwTz+oJmPkKXyiA="
},
"topo": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/topo/-/topo-2.0.0.tgz",
"integrity": "sha1-MVya7bhoytW2FhWWPJ/Qm+kSwe0="
},
"wrappy": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.1.tgz",
"integrity": "sha1-HmWWmWXMvC20VIxrhKbyxa7dRzk="
}
}
},
After this no more extraneous package and the npm module size is 6 Mb.
I'd appreciate if someone could repackage this lib properly.
from hapi-sequelize.
Related Issues (20)
- unit test$
- documentation HOT 2
- Add test coverage HOT 5
- Migration support HOT 1
- confidence/glue support HOT 5
- Loading fixtures HOT 1
- Does not register as a plugin HOT 3
- Sequelize authenticate failure silenced HOT 5
- RangeError: Maximum call stack size exceeded HOT 1
- "onConnect" is not allowed HOT 6
- Handle 'No space left on device' error.
- Using hapi-sequelize HOT 3
- Example of running migrations HOT 1
- Plugin not detecting models HOT 3
- Associations HOT 1
- Accessing the server instance from a model hook?
- Adding ignored models paths
- I can't register plugin in Hapi 17 HOT 1
- How about update hapi-sequelize to hapi 17 ? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hapi-sequelize.