Karma PhantomJs - TypeError on Linux and on Win 7 all tests successful

I run commands

npm install karma karma-jasmine karma-phantomjs-launcher phantomjs@2.1.7 jasmine-core --save-dev
karma start

on my Linux CentOs 7.2 computer and get this error:

bower_components/angular/angular.js:4641:53
        forEach@bower_components/angular/angular.js:321:24
        loadModules@bower_components/angular/angular.js:4601:12
        createInjector@bower_components/angular/angular.js:4523:30
        workFn@vendor/angular-mocks.js:2427:60
        TypeError: undefined is not an object (evaluating '$rootScope.$new') in my-components/my-specific-component/spec/mySpecificController.spec.js (line 84)
        createController@my-components/my-specific-component/spec/mySpecificController.spec.js:84:37
        my-components/my-specific-component/spec/mySpecificController.spec.js:92:42
(...10 more tests failing in the same spec...)
PhantomJS 2.1.1 (Linux 0.0.0): Executed 54 of 54 (11 FAILED) (0.349 secs / 1.251 secs)

I run the same command on my Windows 7 machine and all tests succeed:

PhantomJS 2.1.1 (Windows 7 0.0.0): Executed 54 of 54 SUCCESS (0.152 secs / 1.102 secs)

I checked the installed npm versions:

Win 7 ---> npm 2.15.1
CentOs 7.2 ---> npm 3.10.3
Comment: There shouldn't be a showstopper, right?

Installed modules in npmon Win 7 :

myuser@mycomputer MINGW64 /c/Users/myuser/IdeaProjects/my_project/src/main/webapp (feature/some-feature)
$ npm ls --global
C:\Users\myuser\AppData\Roaming\npm
β”œβ”€β”€ bower@1.7.9
└─┬ karma-cli@1.0.1
  └── resolve@1.1.7

Installed npmmodules in CentOs7 :

[root@localhost webapp]# npm ls --global
/usr/lib
β”œβ”€β”€ ansi@0.2.1
β”œβ”€β”€ bower@1.7.9
β”œβ”€β”¬ karma-cli@1.0.1
β”‚ └── resolve@1.1.7
β”œβ”€β”¬ npm@3.10.3
β”‚ β”œβ”€β”€ abbrev@1.0.9 -> /usr/lib/node_modules/npm/node_modules.bundled/abbrev
β”‚ β”œβ”€β”€ ansi-regex@2.0.0 -> /usr/lib/node_modules/npm/node_modules.bundled/ansi-regex
β”‚ β”œβ”€β”€ ansicolors@0.3.2 -> /usr/lib/node_modules/npm/node_modules.bundled/ansicolors
β”‚ β”œβ”€β”€ ansistyles@0.1.3 -> /usr/lib/node_modules/npm/node_modules.bundled/ansistyles
β”‚ β”œβ”€β”€ aproba@1.0.4 -> /usr/lib/node_modules/npm/node_modules.bundled/aproba
β”‚ β”œβ”€β”€ archy@1.0.0 -> /usr/lib/node_modules/npm/node_modules.bundled/archy
β”‚ β”œβ”€β”€ asap@2.0.4 -> /usr/lib/node_modules/npm/node_modules.bundled/asap
β”‚ β”œβ”€β”€ chownr@1.0.1 -> /usr/lib/node_modules/npm/node_modules.bundled/chownr
β”‚ β”œβ”€β”€ cmd-shim@2.0.2 -> /usr/lib/node_modules/npm/node_modules.bundled/cmd-shim
β”‚ β”œβ”€β”¬ columnify@1.5.4 -> /usr/lib/node_modules/npm/node_modules.bundled/columnify
β”‚ β”‚ └─┬ wcwidth@1.0.0
β”‚ β”‚   └─┬ defaults@1.0.3
β”‚ β”‚     └── clone@1.0.2
β”‚ β”œβ”€β”¬ config-chain@1.1.10 -> /usr/lib/node_modules/npm/node_modules.bundled/config-chain
β”‚ β”‚ └── proto-list@1.2.4
β”‚ β”œβ”€β”€ debuglog@1.0.1 -> /usr/lib/node_modules/npm/node_modules.bundled/debuglog
β”‚ β”œβ”€β”€ dezalgo@1.0.3 -> /usr/lib/node_modules/npm/node_modules.bundled/dezalgo
β”‚ β”œβ”€β”€ editor@1.0.0 -> /usr/lib/node_modules/npm/node_modules.bundled/editor
β”‚ β”œβ”€β”€ fs-vacuum@1.2.9 -> /usr/lib/node_modules/npm/node_modules.bundled/fs-vacuum
β”‚ β”œβ”€β”€ fs-write-stream-atomic@1.0.8 -> /usr/lib/node_modules/npm/node_modules.bundled/fs-write-stream-atomic
β”‚ β”œβ”€β”€ fstream@1.0.10 -> /usr/lib/node_modules/npm/node_modules.bundled/fstream
β”‚ β”œβ”€β”¬ fstream-npm@1.1.0 -> /usr/lib/node_modules/npm/node_modules.bundled/fstream-npm
β”‚ β”‚ └─┬ fstream-ignore@1.0.5
β”‚ β”‚   └─┬ minimatch@3.0.0
β”‚ β”‚     └─┬ brace-expansion@1.1.4
β”‚ β”‚       β”œβ”€β”€ balanced-match@0.4.1
β”‚ β”‚       └── concat-map@0.0.1
β”‚ β”œβ”€β”¬ glob@7.0.4 -> /usr/lib/node_modules/npm/node_modules.bundled/glob
β”‚ β”‚ β”œβ”€β”€ fs.realpath@1.0.0
β”‚ β”‚ β”œβ”€β”¬ minimatch@3.0.0
β”‚ β”‚ β”‚ └─┬ brace-expansion@1.1.5
β”‚ β”‚ β”‚   β”œβ”€β”€ balanced-match@0.4.1
β”‚ β”‚ β”‚   └── concat-map@0.0.1
β”‚ β”‚ └── path-is-absolute@1.0.0
β”‚ β”œβ”€β”€ graceful-fs@4.1.4 -> /usr/lib/node_modules/npm/node_modules.bundled/graceful-fs
β”‚ β”œβ”€β”€ has-unicode@2.0.1 -> /usr/lib/node_modules/npm/node_modules.bundled/has-unicode
β”‚ β”œβ”€β”€ hosted-git-info@2.1.5 -> /usr/lib/node_modules/npm/node_modules.bundled/hosted-git-info
β”‚ β”œβ”€β”€ iferr@0.1.5 -> /usr/lib/node_modules/npm/node_modules.bundled/iferr
β”‚ β”œβ”€β”€ imurmurhash@0.1.4 -> /usr/lib/node_modules/npm/node_modules.bundled/imurmurhash
β”‚ β”œβ”€β”€ inflight@1.0.5 -> /usr/lib/node_modules/npm/node_modules.bundled/inflight
β”‚ β”œβ”€β”€ inherits@2.0.1 -> /usr/lib/node_modules/npm/node_modules.bundled/inherits
β”‚ β”œβ”€β”€ ini@1.3.4 -> /usr/lib/node_modules/npm/node_modules.bundled/ini
β”‚ β”œβ”€β”¬ init-package-json@1.9.4 -> /usr/lib/node_modules/npm/node_modules.bundled/init-package-json
β”‚ β”‚ β”œβ”€β”¬ glob@6.0.4
β”‚ β”‚ β”‚ β”œβ”€β”¬ minimatch@3.0.0
β”‚ β”‚ β”‚ β”‚ └─┬ brace-expansion@1.1.4
β”‚ β”‚ β”‚ β”‚   β”œβ”€β”€ balanced-match@0.4.1
β”‚ β”‚ β”‚ β”‚   └── concat-map@0.0.1
β”‚ β”‚ β”‚ └── path-is-absolute@1.0.0
β”‚ β”‚ └── promzard@0.3.0
β”‚ β”œβ”€β”€ lockfile@1.0.1 -> /usr/lib/node_modules/npm/node_modules.bundled/lockfile
β”‚ β”œβ”€β”€ lodash._baseindexof@3.1.0 -> /usr/lib/node_modules/npm/node_modules.bundled/lodash._baseindexof
β”‚ β”œβ”€β”¬ lodash._baseuniq@4.6.0 -> /usr/lib/node_modules/npm/node_modules.bundled/lodash._baseuniq
β”‚ β”‚ β”œβ”€β”€ lodash._createset@4.0.3
β”‚ β”‚ └── lodash._root@3.0.1
β”‚ β”œβ”€β”€ lodash._bindcallback@3.0.1 -> /usr/lib/node_modules/npm/node_modules.bundled/lodash._bindcallback
β”‚ β”œβ”€β”€ lodash._cacheindexof@3.0.2 -> /usr/lib/node_modules/npm/node_modules.bundled/lodash._cacheindexof
β”‚ β”œβ”€β”€ lodash._createcache@3.1.2 -> /usr/lib/node_modules/npm/node_modules.bundled/lodash._createcache
β”‚ β”œβ”€β”€ lodash._getnative@3.9.1 -> /usr/lib/node_modules/npm/node_modules.bundled/lodash._getnative
β”‚ β”œβ”€β”¬ lodash.clonedeep@4.3.2 -> /usr/lib/node_modules/npm/node_modules.bundled/lodash.clonedeep
β”‚ β”‚ └── lodash._baseclone@4.5.3
β”‚ β”œβ”€β”€ lodash.restparam@3.6.1 -> /usr/lib/node_modules/npm/node_modules.bundled/lodash.restparam
β”‚ β”œβ”€β”¬ lodash.union@4.4.0 -> /usr/lib/node_modules/npm/node_modules.bundled/lodash.union
β”‚ β”‚ β”œβ”€β”€ lodash._baseflatten@4.2.1
β”‚ β”‚ └── lodash.rest@4.0.3
β”‚ β”œβ”€β”€ lodash.uniq@4.3.0 -> /usr/lib/node_modules/npm/node_modules.bundled/lodash.uniq
β”‚ β”œβ”€β”¬ lodash.without@4.2.0 -> /usr/lib/node_modules/npm/node_modules.bundled/lodash.without
β”‚ β”‚ β”œβ”€β”¬ lodash._basedifference@4.5.0
β”‚ β”‚ β”‚ └── lodash._root@3.0.1
β”‚ β”‚ └── lodash.rest@4.0.3
β”‚ β”œβ”€β”¬ mkdirp@0.5.1 -> /usr/lib/node_modules/npm/node_modules.bundled/mkdirp
β”‚ β”‚ └── minimist@0.0.8
β”‚ β”œβ”€β”¬ node-gyp@3.3.1 -> /usr/lib/node_modules/npm/node_modules.bundled/node-gyp
β”‚ β”‚ β”œβ”€β”¬ glob@4.5.3
β”‚ β”‚ β”‚ └─┬ minimatch@2.0.10
β”‚ β”‚ β”‚   └─┬ brace-expansion@1.1.3
β”‚ β”‚ β”‚     β”œβ”€β”€ balanced-match@0.3.0
β”‚ β”‚ β”‚     └── concat-map@0.0.1
β”‚ β”‚ β”œβ”€β”¬ minimatch@1.0.0
β”‚ β”‚ β”‚ β”œβ”€β”€ lru-cache@2.7.3
β”‚ β”‚ β”‚ └── sigmund@1.0.1
β”‚ β”‚ β”œβ”€β”¬ npmlog@2.0.4
β”‚ β”‚ β”‚ β”œβ”€β”€ ansi@0.3.1
β”‚ β”‚ β”‚ β”œβ”€β”¬ are-we-there-yet@1.1.2
β”‚ β”‚ β”‚ β”‚ └── delegates@1.0.0
β”‚ β”‚ β”‚ └─┬ gauge@1.2.7
β”‚ β”‚ β”‚   β”œβ”€β”¬ lodash.pad@4.4.0
β”‚ β”‚ β”‚   β”‚ β”œβ”€β”€ lodash._baseslice@4.0.0
β”‚ β”‚ β”‚   β”‚ β”œβ”€β”€ lodash._basetostring@4.12.0
β”‚ β”‚ β”‚   β”‚ └── lodash.tostring@4.1.3
β”‚ β”‚ β”‚   β”œβ”€β”¬ lodash.padend@4.5.0
β”‚ β”‚ β”‚   β”‚ β”œβ”€β”€ lodash._baseslice@4.0.0
β”‚ β”‚ β”‚   β”‚ β”œβ”€β”€ lodash._basetostring@4.12.0
β”‚ β”‚ β”‚   β”‚ └── lodash.tostring@4.1.3
β”‚ β”‚ β”‚   └─┬ lodash.padstart@4.5.0
β”‚ β”‚ β”‚     β”œβ”€β”€ lodash._baseslice@4.0.0
β”‚ β”‚ β”‚     β”œβ”€β”€ lodash._basetostring@4.12.0
β”‚ β”‚ β”‚     └── lodash.tostring@4.1.3
β”‚ β”‚ └─┬ path-array@1.0.1
β”‚ β”‚   └─┬ array-index@1.0.0
β”‚ β”‚     β”œβ”€β”¬ debug@2.2.0
β”‚ β”‚     β”‚ └── ms@0.7.1
β”‚ β”‚     └─┬ es6-symbol@3.0.2
β”‚ β”‚       β”œβ”€β”€ d@0.1.1
β”‚ β”‚       └─┬ es5-ext@0.10.11
β”‚ β”‚         └── es6-iterator@2.0.0
β”‚ β”œβ”€β”€ nopt@3.0.6 -> /usr/lib/node_modules/npm/node_modules.bundled/nopt
β”‚ β”œβ”€β”€ normalize-git-url@3.0.2 -> /usr/lib/node_modules/npm/node_modules.bundled/normalize-git-url
β”‚ β”œβ”€β”¬ normalize-package-data@2.3.5 -> /usr/lib/node_modules/npm/node_modules.bundled/normalize-package-data
β”‚ β”‚ └─┬ is-builtin-module@1.0.0
β”‚ β”‚   └── builtin-modules@1.1.1
β”‚ β”œβ”€β”€ npm-cache-filename@1.0.2 -> /usr/lib/node_modules/npm/node_modules.bundled/npm-cache-filename
β”‚ β”œβ”€β”€ npm-install-checks@3.0.0 -> /usr/lib/node_modules/npm/node_modules.bundled/npm-install-checks
β”‚ β”œβ”€β”€ npm-package-arg@4.2.0 -> /usr/lib/node_modules/npm/node_modules.bundled/npm-package-arg
β”‚ β”œβ”€β”¬ npm-registry-client@7.1.2 -> /usr/lib/node_modules/npm/node_modules.bundled/npm-registry-client
β”‚ β”‚ β”œβ”€β”¬ concat-stream@1.5.1
β”‚ β”‚ β”‚ β”œβ”€β”¬ readable-stream@2.0.6
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ core-util-is@1.0.2
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ isarray@1.0.0
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ process-nextick-args@1.0.7
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ string_decoder@0.10.31
β”‚ β”‚ β”‚ β”‚ └── util-deprecate@1.0.2
β”‚ β”‚ β”‚ └── typedarray@0.0.6
β”‚ β”‚ └── retry@0.8.0
β”‚ β”œβ”€β”€ npm-user-validate@0.1.4 -> /usr/lib/node_modules/npm/node_modules.bundled/npm-user-validate
β”‚ β”œβ”€β”¬ npmlog@3.1.2 -> /usr/lib/node_modules/npm/node_modules.bundled/npmlog
β”‚ β”‚ β”œβ”€β”¬ are-we-there-yet@1.1.2
β”‚ β”‚ β”‚ └── delegates@1.0.0
β”‚ β”‚ β”œβ”€β”€ console-control-strings@1.1.0
β”‚ β”‚ β”œβ”€β”¬ gauge@2.6.0
β”‚ β”‚ β”‚ β”œβ”€β”€ has-color@0.1.7
β”‚ β”‚ β”‚ β”œβ”€β”€ object-assign@4.1.0
β”‚ β”‚ β”‚ β”œβ”€β”€ signal-exit@3.0.0
β”‚ β”‚ β”‚ β”œβ”€β”¬ string-width@1.0.1
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”¬ code-point-at@1.0.0
β”‚ β”‚ β”‚ β”‚ β”‚ └── number-is-nan@1.0.0
β”‚ β”‚ β”‚ β”‚ └─┬ is-fullwidth-code-point@1.0.0
β”‚ β”‚ β”‚ β”‚   └── number-is-nan@1.0.0
β”‚ β”‚ β”‚ └── wide-align@1.1.0
β”‚ β”‚ └── set-blocking@2.0.0
β”‚ β”œβ”€β”€ once@1.3.3 -> /usr/lib/node_modules/npm/node_modules.bundled/once
β”‚ β”œβ”€β”€ opener@1.4.1 -> /usr/lib/node_modules/npm/node_modules.bundled/opener
β”‚ β”œβ”€β”¬ osenv@0.1.3 -> /usr/lib/node_modules/npm/node_modules.bundled/osenv
β”‚ β”‚ β”œβ”€β”€ os-homedir@1.0.1
β”‚ β”‚ └── os-tmpdir@1.0.1
β”‚ β”œβ”€β”€ path-is-inside@1.0.1 -> /usr/lib/node_modules/npm/node_modules.bundled/path-is-inside
β”‚ β”œβ”€β”¬ read@1.0.7 -> /usr/lib/node_modules/npm/node_modules.bundled/read
β”‚ β”‚ └── mute-stream@0.0.5
β”‚ β”œβ”€β”€ read-cmd-shim@1.0.1 -> /usr/lib/node_modules/npm/node_modules.bundled/read-cmd-shim
β”‚ β”œβ”€β”¬ read-installed@4.0.3 -> /usr/lib/node_modules/npm/node_modules.bundled/read-installed
β”‚ β”‚ └── util-extend@1.0.3
β”‚ β”œβ”€β”¬ read-package-json@2.0.4 -> /usr/lib/node_modules/npm/node_modules.bundled/read-package-json
β”‚ β”‚ β”œβ”€β”¬ glob@6.0.4
β”‚ β”‚ β”‚ β”œβ”€β”¬ minimatch@3.0.0
β”‚ β”‚ β”‚ β”‚ └─┬ brace-expansion@1.1.3
β”‚ β”‚ β”‚ β”‚   β”œβ”€β”€ balanced-match@0.3.0
β”‚ β”‚ β”‚ β”‚   └── concat-map@0.0.1
β”‚ β”‚ β”‚ └── path-is-absolute@1.0.0
β”‚ β”‚ └─┬ json-parse-helpfulerror@1.0.3
β”‚ β”‚   └── jju@1.3.0
β”‚ β”œβ”€β”€ read-package-tree@5.1.5 -> /usr/lib/node_modules/npm/node_modules.bundled/read-package-tree
β”‚ β”œβ”€β”¬ readable-stream@2.1.4 -> /usr/lib/node_modules/npm/node_modules.bundled/readable-stream
β”‚ β”‚ β”œβ”€β”€ buffer-shims@1.0.0
β”‚ β”‚ β”œβ”€β”€ core-util-is@1.0.2
β”‚ β”‚ β”œβ”€β”€ isarray@1.0.0
β”‚ β”‚ β”œβ”€β”€ process-nextick-args@1.0.7
β”‚ β”‚ β”œβ”€β”€ string_decoder@0.10.31
β”‚ β”‚ └── util-deprecate@1.0.2
β”‚ β”œβ”€β”€ readdir-scoped-modules@1.0.2 -> /usr/lib/node_modules/npm/node_modules.bundled/readdir-scoped-modules
β”‚ β”œβ”€β”€ realize-package-specifier@3.0.3 -> /usr/lib/node_modules/npm/node_modules.bundled/realize-package-specifier
β”‚ β”œβ”€β”¬ request@2.72.0 -> /usr/lib/node_modules/npm/node_modules.bundled/request
β”‚ β”‚ β”œβ”€β”€ aws-sign2@0.6.0
β”‚ β”‚ β”œβ”€β”¬ aws4@1.3.2
β”‚ β”‚ β”‚ └─┬ lru-cache@4.0.1
β”‚ β”‚ β”‚   β”œβ”€β”€ pseudomap@1.0.2
β”‚ β”‚ β”‚   └── yallist@2.0.0
β”‚ β”‚ β”œβ”€β”¬ bl@1.1.2
β”‚ β”‚ β”‚ └─┬ readable-stream@2.0.6
β”‚ β”‚ β”‚   β”œβ”€β”€ core-util-is@1.0.2
β”‚ β”‚ β”‚   β”œβ”€β”€ isarray@1.0.0
β”‚ β”‚ β”‚   β”œβ”€β”€ process-nextick-args@1.0.6
β”‚ β”‚ β”‚   β”œβ”€β”€ string_decoder@0.10.31
β”‚ β”‚ β”‚   └── util-deprecate@1.0.2
β”‚ β”‚ β”œβ”€β”€ caseless@0.11.0
β”‚ β”‚ β”œβ”€β”¬ combined-stream@1.0.5
β”‚ β”‚ β”‚ └── delayed-stream@1.0.0
β”‚ β”‚ β”œβ”€β”€ extend@3.0.0
β”‚ β”‚ β”œβ”€β”€ forever-agent@0.6.1
β”‚ β”‚ β”œβ”€β”¬ form-data@1.0.0-rc4
β”‚ β”‚ β”‚ └── async@1.5.2
β”‚ β”‚ β”œβ”€β”¬ har-validator@2.0.6
β”‚ β”‚ β”‚ β”œβ”€β”¬ chalk@1.1.3
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ ansi-styles@2.2.1
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ escape-string-regexp@1.0.5
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ has-ansi@2.0.0
β”‚ β”‚ β”‚ β”‚ └── supports-color@2.0.0
β”‚ β”‚ β”‚ β”œβ”€β”¬ commander@2.9.0
β”‚ β”‚ β”‚ β”‚ └── graceful-readlink@1.0.1
β”‚ β”‚ β”‚ β”œβ”€β”¬ is-my-json-valid@2.13.1
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ generate-function@2.0.0
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”¬ generate-object-property@1.2.0
β”‚ β”‚ β”‚ β”‚ β”‚ └── is-property@1.0.2
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ jsonpointer@2.0.0
β”‚ β”‚ β”‚ β”‚ └── xtend@4.0.1
β”‚ β”‚ β”‚ └─┬ pinkie-promise@2.0.1
β”‚ β”‚ β”‚   └── pinkie@2.0.4
β”‚ β”‚ β”œβ”€β”¬ hawk@3.1.3
β”‚ β”‚ β”‚ β”œβ”€β”€ boom@2.10.1
β”‚ β”‚ β”‚ β”œβ”€β”€ cryptiles@2.0.5
β”‚ β”‚ β”‚ β”œβ”€β”€ hoek@2.16.3
β”‚ β”‚ β”‚ └── sntp@1.0.9
β”‚ β”‚ β”œβ”€β”¬ http-signature@1.1.1
β”‚ β”‚ β”‚ β”œβ”€β”€ assert-plus@0.2.0
β”‚ β”‚ β”‚ β”œβ”€β”¬ jsprim@1.2.2
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ extsprintf@1.0.2
β”‚ β”‚ β”‚ β”‚ β”œβ”€β”€ json-schema@0.2.2
β”‚ β”‚ β”‚ β”‚ └── verror@1.3.6
β”‚ β”‚ β”‚ └─┬ sshpk@1.7.4
β”‚ β”‚ β”‚   β”œβ”€β”€ asn1@0.2.3
β”‚ β”‚ β”‚   β”œβ”€β”¬ dashdash@1.13.0
β”‚ β”‚ β”‚   β”‚ └── assert-plus@1.0.0
β”‚ β”‚ β”‚   β”œβ”€β”€ ecc-jsbn@0.1.1
β”‚ β”‚ β”‚   β”œβ”€β”€ jodid25519@1.0.2
β”‚ β”‚ β”‚   β”œβ”€β”€ jsbn@0.1.0
β”‚ β”‚ β”‚   └── tweetnacl@0.14.3
β”‚ β”‚ β”œβ”€β”€ is-typedarray@1.0.0
β”‚ β”‚ β”œβ”€β”€ isstream@0.1.2
β”‚ β”‚ β”œβ”€β”€ json-stringify-safe@5.0.1
β”‚ β”‚ β”œβ”€β”¬ mime-types@2.1.10
β”‚ β”‚ β”‚ └── mime-db@1.22.0
β”‚ β”‚ β”œβ”€β”€ node-uuid@1.4.7
β”‚ β”‚ β”œβ”€β”€ oauth-sign@0.8.1
β”‚ β”‚ β”œβ”€β”€ qs@6.1.0
β”‚ β”‚ β”œβ”€β”€ stringstream@0.0.5
β”‚ β”‚ β”œβ”€β”€ tough-cookie@2.2.2
β”‚ β”‚ └── tunnel-agent@0.4.2
β”‚ β”œβ”€β”€ retry@0.9.0 -> /usr/lib/node_modules/npm/node_modules.bundled/retry
β”‚ β”œβ”€β”€ rimraf@2.5.2 -> /usr/lib/node_modules/npm/node_modules.bundled/rimraf
β”‚ β”œβ”€β”€ semver@5.1.0 -> /usr/lib/node_modules/npm/node_modules.bundled/semver
β”‚ β”œβ”€β”€ sha@2.0.1 -> /usr/lib/node_modules/npm/node_modules.bundled/sha
β”‚ β”œβ”€β”€ slide@1.1.6 -> /usr/lib/node_modules/npm/node_modules.bundled/slide
β”‚ β”œβ”€β”€ sorted-object@2.0.0 -> /usr/lib/node_modules/npm/node_modules.bundled/sorted-object
β”‚ β”œβ”€β”€ strip-ansi@3.0.1 -> /usr/lib/node_modules/npm/node_modules.bundled/strip-ansi
β”‚ β”œβ”€β”¬ tar@2.2.1 -> /usr/lib/node_modules/npm/node_modules.bundled/tar
β”‚ β”‚ └── block-stream@0.0.8
β”‚ β”œβ”€β”€ text-table@0.2.0 -> /usr/lib/node_modules/npm/node_modules.bundled/text-table
β”‚ β”œβ”€β”€ uid-number@0.0.6 -> /usr/lib/node_modules/npm/node_modules.bundled/uid-number
β”‚ β”œβ”€β”€ umask@1.1.0 -> /usr/lib/node_modules/npm/node_modules.bundled/umask
β”‚ β”œβ”€β”¬ unique-filename@1.1.0 -> /usr/lib/node_modules/npm/node_modules.bundled/unique-filename
β”‚ β”‚ └── unique-slug@2.0.0
β”‚ β”œβ”€β”€ unpipe@1.0.0 -> /usr/lib/node_modules/npm/node_modules.bundled/unpipe
β”‚ β”œβ”€β”¬ validate-npm-package-license@3.0.1 -> /usr/lib/node_modules/npm/node_modules.bundled/validate-npm-package-license
β”‚ β”‚ β”œβ”€β”¬ spdx-correct@1.0.2
β”‚ β”‚ β”‚ └── spdx-license-ids@1.2.0
β”‚ β”‚ └─┬ spdx-expression-parse@1.0.2
β”‚ β”‚   β”œβ”€β”€ spdx-exceptions@1.0.4
β”‚ β”‚   └── spdx-license-ids@1.2.0
β”‚ β”œβ”€β”¬ validate-npm-package-name@2.2.2 -> /usr/lib/node_modules/npm/node_modules.bundled/validate-npm-package-name
β”‚ β”‚ └── builtins@0.0.7
β”‚ β”œβ”€β”¬ which@1.2.10 -> /usr/lib/node_modules/npm/node_modules.bundled/which
β”‚ β”‚ └── isexe@1.1.2
β”‚ β”œβ”€β”€ wrappy@1.0.2 -> /usr/lib/node_modules/npm/node_modules.bundled/wrappy
β”‚ └── write-file-atomic@1.1.4 -> /usr/lib/node_modules/npm/node_modules.bundled/write-file-atomic
└── which@1.0.5

Why do characteristics on different platforms behave differently?

+4
1

grunt ( yoman), bower :

bower install `package_name` --save

index.html karma.conf.js. adm-dtp, ( ). karma.conf.js, .
, karma.conf.js , . this . grunt yeoman, //end bower, grunt test.
karma.conf.js:

config.set({
// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,

// base path, that will be used to resolve files and exclude
basePath: '../',

// testing framework to use (jasmine/mocha/qunit/...)
// as well as any additional frameworks (requirejs/chai/sinon/...)
frameworks: [
  'jasmine'
],

// list of files / patterns to load in the browser
files: [
  'app/scripts/persian.min.js',
  // bower:js
  'bower_components/jquery/dist/jquery.js',
  'bower_components/angular/angular.js',
  'bower_components/bootstrap/dist/js/bootstrap.js',
  'bower_components/angular-animate/angular-animate.js',
  'bower_components/angular-aria/angular-aria.js',
  'bower_components/angular-cookies/angular-cookies.js',
  'bower_components/angular-messages/angular-messages.js',
  'bower_components/angular-resource/angular-resource.js',
  'bower_components/angular-route/angular-route.js',
  'bower_components/angular-sanitize/angular-sanitize.js',
  'bower_components/angular-touch/angular-touch.js',
  'bower_components/angularLocalStorage/dist/angularLocalStorage.min.js',
  'bower_components/ngmap/build/scripts/ng-map.js',
  'bower_components/angular-loading-bar/build/loading-bar.js',
  'bower_components/angular-persian/dist/angularpersian.js',
  'bower_components/caman/dist/caman.min.js',
  'bower_components/caman/dist/caman.full.min.js',
  'bower_components/angular-xeditable/dist/js/xeditable.js',
  'bower_components/moment/moment.js',
  'bower_components/angular-mocks/angular-mocks.js',
  // endbower
  // AFTER END BOWER ADDING BOWER COMPONENTS NOT ADDED AUTOMATICLY:
  'bower_components/adm-dtp/dist/ADM-dateTimePicker.min.js',

  'app/scripts/**/*.js',
  'test/mock/**/*.js',
  'test/spec/**/*.js',
  'app/scripts/controllers/bootstrapController.js'
],

// list of files / patterns to exclude
exclude: [
],

// web server port
port: 8082,

// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera
// - Safari (only Mac)
// - PhantomJS
// - IE (only Windows)
browsers: [
  'PhantomJS',
],

// Which plugins to enable
plugins: [
  'karma-phantomjs-launcher',
  'karma-jasmine'
],

// Continuous Integration mode
// if true, it capture browsers, run tests and exit
singleRun: false,

colors: true,

// level of logging
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
logLevel: config.LOG_DISABLE,

// Uncomment the following lines if you are using grunt server to run the tests
proxies: {
  '/': 'http://localhost:9000/'
},
// URL root prevent conflicts with the site root
// urlRoot: '_karma_'
});
0

Source: https://habr.com/ru/post/1659594/


All Articles