Comments (4)
I also tried with node v6.13.1 and it gave me a 493 line stack trace.
from mock-couch.
Well this is wierd. If I delete node_modules
but leave package-lock.json
and reinstall, it works fine, and I get a very different output from npm list
.
bash> npm list
/Users/chris/projects/rmc/test
└─┬ [email protected]
├── [email protected] extraneous
├── [email protected]
├── [email protected] extraneous
├── [email protected] extraneous
├── [email protected] extraneous
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected] deduped
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├── [email protected]
│ │ │ └─┬ [email protected]
│ │ │ └─┬ [email protected]
│ │ │ ├─┬ [email protected]
│ │ │ │ ├── [email protected] deduped
│ │ │ │ └── [email protected] deduped
│ │ │ ├── [email protected] deduped
│ │ │ ├─┬ [email protected]
│ │ │ │ └─┬ [email protected]
│ │ │ │ ├── [email protected]
│ │ │ │ └── [email protected]
│ │ │ ├── [email protected] deduped
│ │ │ └── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected]
│ │ │ └── [email protected] deduped
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├─┬ [email protected]
│ │ │ └── [email protected] deduped
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ ├── [email protected] deduped
│ │ └── [email protected] deduped
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected] deduped
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected] deduped
│ │ │ └── [email protected] deduped
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected] deduped
│ │ │ ├── [email protected]
│ │ │ ├── [email protected]
│ │ │ ├── [email protected] deduped
│ │ │ ├─┬ [email protected]
│ │ │ │ └── [email protected] deduped
│ │ │ └── [email protected]
│ │ ├── [email protected] deduped
│ │ └─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ ├── [email protected] deduped
│ ├── [email protected]
│ └── [email protected]
└── [email protected]
npm ERR! extraneous: [email protected] /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/color-convert
npm ERR! extraneous: [email protected] /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/grunt
npm ERR! extraneous: [email protected] /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/grunt-jasmine-nodejs
npm ERR! extraneous: [email protected] /Users/chris/projects/rmc/test/node_modules/mock-couch/node_modules/grunt-jslint
from mock-couch.
If I delete node_modules
and package-lock.json
and reinstall, it fails again. Then if I just run npm install
again it works.
from mock-couch.
The purpose of package-lock.json is to specify exactly which version of each dependency it should install.
If you delete node_modules but leave package-lock.json, it will reinstall each dependency, and it will make sure to install only the version that is specified there, which should guarantee that it will work.
If you delete package-lock.json (and you shouldn't do that) and then reinstall the dependencies, it will no longer check the version of each dependency, which could cause it to install broken dependencies.
According to your last comment, for some reason, if you delete both, reinstall, and then again execute npm install
, it will install valid dependencies.
But as long reinstalling the dependencies with package-lock.json present works correctly, then it cannot be considered a problem of mock-couch.
I cannot replicate your problem; using the same node and npm versions as you (node v8.9.1 and npm v6.1.0), I executed the following commands:
mkdir test-mock
cd test-mock
npm init -y
npm install --save mock-couch
echo "require('mock-couch');">test.js
node test.js
# last command produces no output and returns without problems
Try to do that. If that works, then mock-couch is working correctly and for some reason you had broken dependencies installed on your project.
I must mention I did my tests using linux and not macos. Then again, I don't think that is related.
from mock-couch.
Related Issues (20)
- Allow '/' in database names
- Fix PUT db
- New databases created via HTTP don't get a changes list
- Fix exception with views emitting null values and including docs
- Leaving out optional rows array doesn't create a db with addDB.
- When querying against multiple keys, rows.length will be at most equal to keys.length HOT 1
- Add support for built-in reduce functions HOT 3
- Support for design document update handlers? HOT 4
- support for _show and _list functions HOT 2
- Getting some errors with node v5.9.0 HOT 3
- Getting 405 PUT is not allowed when trying to insert a _design doc with nano HOT 2
- Fix in 'Add put/post for design docs #42' Wasn't Delivered into NPM Package HOT 2
- View collation bug with array keys HOT 2
- CouchDB 2.0
- The super constructor to "inherits" must not be null or undefined HOT 8
- Doesn't seem to work with yarn HOT 2
- I get this error when running my simple tests: The super constructor to inherits must not be null or undefined HOT 6
- No need for npm-shrinkwrap.json to be included in repo HOT 1
- TypeError [ERR_INVALID_ARG_TYPE]: The "superCtor" argument must be of type Function. Received type undefined HOT 1
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 mock-couch.