Comments (7)
For now, you can try this workaround. In node_modules/objectstream/lib/objectstream.js
, replace:
var EventEmitter = process.EventEmitter
with
var EventEmitter = require('events');
Let me know if that works. If so, I'll submit a pull request to the objectstream library
from agstoshapefile.
That worked! Thanks tannerjt!
My npm version is 4.1.2
node version 7.7.4.0 (32bit)
Windows 10
from agstoshapefile.
Not sure the exact issue, looks like it doesn't like the objectstream module. Maybe try npm install again? Maybe npm update for an outdated module?
from agstoshapefile.
I got the same error, along with some others during the npm install:
C:\apps\AGStoShapefile-master>npm install
npm WARN deprecated [email protected]: Use uuid module instead
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
[email protected] C:\apps\AGStoShapefile-master
+-- [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]
| | -- [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] | | | | +-- [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]
| | -- [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] | |
-- [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] | +-- [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]
| | -- [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]
| | | -- [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]
| +-- [email protected]
| -- [email protected]
-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
`-- [email protected]
npm WARN [email protected] No repository field.
C:\apps\AGStoShapefile-master>node agstoshp.js
util.js:973
throw new TypeError('The super constructor to "inherits" must not ' +
^
TypeError: The super constructor to "inherits" must not be null or undefined
at Object.exports.inherits (util.js:973:11)
at Object. (C:\apps\AGStoShapefile-master\node_modules\objectstream\lib\objectstream.js:43:6)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (C:\apps\AGStoShapefile-master\agstoshp.js:13:20)
from agstoshapefile.
Can you specify which version of Node you are running? In your terminal or command prompt, type node -v
from agstoshapefile.
It looks like the problem is coming from objectstream
var EventEmitter = process.EventEmitter;
util.inherits(ObjectDeserializeStream, EventEmitter);
My guess is that process.EventEmitter is null. Can you try running node in command line and typing process.EventEmitter
and see what is returned?
from agstoshapefile.
That's great, I'll let the maintainer of the objectstream library know
from agstoshapefile.
Related Issues (20)
- No shapefile output (bigdata branch) HOT 3
- error code 500? HOT 1
- TypeError: Cannot read property 'push' of undefined
- Cannot read property '0' of undefined HOT 1
- TypeError: Cannot read property 'attributes' of undefined HOT 3
- Error after finished extracting chunks. How to merge multiple JSON files to single GeoJSON file? HOT 4
- Partial JSON argument due to GeoJSON big file size
- Type error in terraformer HOT 2
- Print better failure message
- Too many open files.... Is it possible to increase the chunk size from 100 to say... 1000? HOT 7
- Cannot read property 'spatialReference' of undefined
- I am getting TypeError: Cannot read property 'sort' of null
- Feature Missing Geometry and is Omitted
- TypeError: Cannot read property 'sort' of undefined. HOT 2
- Error: read ECONNRESET
- Is it possible to have a web interface to enter the service url?
- npm deprecation/notsup warnings
- ReferenceError: primordials is not defined HOT 4
- ReferenceError: geojsonStream is not defined HOT 1
- Code modification for error 502
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 agstoshapefile.