npm ERR! node v0.10.40
npm ERR! npm v2.13.3
npm ERR! file /home/agali/.atom/.apm/esprima/2.7.2/package/package.json
npm ERR! code EJSONPARSE
npm ERR! Failed to parse json
npm ERR! Unexpected token '\u0000' at 1:1016
npm ERR! data found!","homepage":"https://github.com/isaacs/inherits#readme"}
left clickalmost at the same time, and then just press
vafterwards. This is a "human race condition" for me, because sometimes I hold control and then click, which opens lib.d.ts (for example), which takes ages, and leads to me getting frustrated.
"filesGlob": [ "typings/**/*.d.ts", "typings/globals/**/*.d.ts", "typings/modules/**/*.d.ts" ]
typing install d3, they are external modules
d3will not exist in scope
import * as d3 from 'd3'
import rx = require('rx')(but
import * as rx from 'rx'should also work)
I got this:
$ typings install dt~rx typings ERR! message Attempted to compile "rx" as an external module, but it looks like a global module. You'll need to enable the global option to continue.
so I did this:
$ typings install dt~rx --global typings INFO reference Stripped reference "https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/7de6c3dd94feaeb21f20054b9f30d5dabc5efabd/rx/rx-lite.d.ts" during installation from "rx" (main) rx └── (No dependencies)
typings install dt~rx-lite --globalto correct that
import Rx = require('rx');?
import rx = require('rx'); let Rx = rx;
Rx.Observable.etc()in the original