I've been trying to install gulp using sudo command on my mac but it doesn't seem to work out. I have successfully installed node before. I paste all the things happening on my screen below. After all these text. I typed gulp -v command in my terminal and gulp hasn't installed. >>> -bash: gulp: command not found
What should I do?
Thank you so much in advance!!!
sudo npm install gulp -f
Password:
npm WARN using --force I sure hope you know what you are doing.
npm WARN deprecated minimatch#2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch#0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs#1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs#^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
/Users/macbook
└─┬ gulp#3.9.1
├── archy#1.0.0
├─┬ chalk#1.1.3
│ ├── ansi-styles#2.2.1
│ ├── escape-string-regexp#1.0.5
│ ├─┬ has-ansi#2.0.0
│ │ └── ansi-regex#2.1.1
│ ├── strip-ansi#3.0.1
│ └── supports-color#2.0.0
├── deprecated#0.0.1
├─┬ gulp-util#3.0.8
│ ├── array-differ#1.0.0
│ ├── array-uniq#1.0.3
│ ├── beeper#1.1.1
│ ├── dateformat#2.0.0
│ ├─┬ fancy-log#1.3.0
│ │ └── time-stamp#1.0.1
│ ├─┬ gulplog#1.0.0
│ │ └── glogg#1.0.0
│ ├─┬ has-gulplog#0.1.0
│ │ └── sparkles#1.0.0
│ ├── lodash._reescape#3.0.0
│ ├── lodash._reevaluate#3.0.0
│ ├── lodash._reinterpolate#3.0.0
│ ├─┬ lodash.template#3.6.2
│ │ ├── lodash._basecopy#3.0.1
│ │ ├── lodash._basetostring#3.0.1
│ │ ├── lodash._basevalues#3.0.0
│ │ ├── lodash._isiterateecall#3.0.9
│ │ ├─┬ lodash.escape#3.2.0
│ │ │ └── lodash._root#3.0.1
│ │ ├─┬ lodash.keys#3.1.2
│ │ │ ├── lodash._getnative#3.9.1
│ │ │ ├── lodash.isarguments#3.1.0
│ │ │ └── lodash.isarray#3.0.4
│ │ ├── lodash.restparam#3.6.1
│ │ └── lodash.templatesettings#3.1.1
│ ├─┬ multipipe#0.1.2
│ │ └─┬ duplexer2#0.0.2
│ │ └── readable-stream#1.1.14
│ ├── object-assign#3.0.0
│ ├── replace-ext#0.0.1
│ ├─┬ through2#2.0.3
│ │ ├─┬ readable-stream#2.2.9
│ │ │ ├── buffer-shims#1.0.0
│ │ │ ├── core-util-is#1.0.2
│ │ │ ├── inherits#2.0.3
│ │ │ ├── isarray#1.0.0
│ │ │ ├── process-nextick-args#1.0.7
│ │ │ ├── string_decoder#1.0.0
│ │ │ └── util-deprecate#1.0.2
│ │ └── xtend#4.0.1
│ └─┬ vinyl#0.5.3
│ ├── clone#1.0.2
│ └── clone-stats#0.0.1
├── interpret#1.0.3
├─┬ liftoff#2.3.0
│ ├── extend#3.0.1
│ ├─┬ findup-sync#0.4.3
│ │ ├─┬ detect-file#0.1.0
│ │ │ └── fs-exists-sync#0.1.0
│ │ ├─┬ is-glob#2.0.1
│ │ │ └── is-extglob#1.0.0
│ │ ├─┬ micromatch#2.3.11
│ │ │ ├─┬ arr-diff#2.0.0
│ │ │ │ └── arr-flatten#1.0.3
│ │ │ ├── array-unique#0.2.1
│ │ │ ├─┬ braces#1.8.5
│ │ │ │ ├─┬ expand-range#1.8.2
│ │ │ │ │ └─┬ fill-range#2.2.3
│ │ │ │ │ ├── is-number#2.1.0
│ │ │ │ │ ├─┬ isobject#2.1.0
│ │ │ │ │ │ └── isarray#1.0.0
│ │ │ │ │ ├── randomatic#1.1.6
│ │ │ │ │ └── repeat-string#1.6.1
│ │ │ │ ├── preserve#0.2.0
│ │ │ │ └── repeat-element#1.1.2
│ │ │ ├─┬ expand-brackets#0.1.5
│ │ │ │ └── is-posix-bracket#0.1.1
│ │ │ ├── extglob#0.3.2
│ │ │ ├── filename-regex#2.0.1
│ │ │ ├─┬ kind-of#3.2.0
│ │ │ │ └── is-buffer#1.1.5
│ │ │ ├─┬ normalize-path#2.1.1
│ │ │ │ └── remove-trailing-separator#1.0.1
│ │ │ ├─┬ object.omit#2.0.1
│ │ │ │ ├─┬ for-own#0.1.5
│ │ │ │ │ └── for-in#1.0.2
│ │ │ │ └── is-extendable#0.1.1
│ │ │ ├─┬ parse-glob#3.0.4
│ │ │ │ ├─┬ glob-base#0.3.0
│ │ │ │ │ └── glob-parent#2.0.0
│ │ │ │ └── is-dotfile#1.0.2
│ │ │ └─┬ regex-cache#0.4.3
│ │ │ ├── is-equal-shallow#0.1.3
│ │ │ └── is-primitive#2.0.0
│ │ └─┬ resolve-dir#0.1.1
│ │ └─┬ global-modules#0.2.3
│ │ ├─┬ global-prefix#0.1.5
│ │ │ ├─┬ homedir-polyfill#1.0.1
│ │ │ │ └── parse-passwd#1.0.0
│ │ │ ├── ini#1.3.4
│ │ │ └─┬ which#1.2.14
│ │ │ └── isexe#2.0.0
│ │ └── is-windows#0.2.0
│ ├─┬ fined#1.0.2
│ │ ├── expand-tilde#1.2.2
│ │ ├── lodash.assignwith#4.2.0
│ │ ├── lodash.isempty#4.4.0
│ │ ├── lodash.pick#4.4.0
│ │ └─┬ parse-filepath#1.0.1
│ │ ├─┬ is-absolute#0.2.6
│ │ │ └─┬ is-relative#0.2.1
│ │ │ └─┬ is-unc-path#0.1.2
│ │ │ └── unc-path-regex#0.1.2
│ │ ├── map-cache#0.2.2
│ │ └─┬ path-root#0.1.1
│ │ └── path-root-regex#0.1.2
│ ├── flagged-respawn#0.3.2
│ ├── lodash.isplainobject#4.0.6
│ ├── lodash.isstring#4.0.1
│ ├── lodash.mapvalues#4.6.0
│ ├── rechoir#0.6.2
│ └─┬ resolve#1.3.3
│ └── path-parse#1.0.5
├── minimist#1.2.0
├─┬ orchestrator#0.3.8
│ ├─┬ end-of-stream#0.1.5
│ │ └─┬ once#1.3.3
│ │ └── wrappy#1.0.2
│ ├── sequencify#0.0.7
│ └── stream-consume#0.1.0
├── pretty-hrtime#1.0.3
├── semver#4.3.6
├─┬ tildify#1.2.0
│ └── os-homedir#1.0.2
├─┬ v8flags#2.1.1
│ └── user-home#1.1.1
└─┬ vinyl-fs#0.3.14
├── defaults#1.0.3
├─┬ glob-stream#3.1.18
│ ├─┬ glob#4.5.3
│ │ └── inflight#1.0.6
│ ├─┬ glob2base#0.0.12
│ │ └── find-index#0.1.1
│ ├─┬ minimatch#2.0.10
│ │ └─┬ brace-expansion#1.1.7
│ │ ├── balanced-match#0.4.2
│ │ └── concat-map#0.0.1
│ ├── ordered-read-streams#0.1.0
│ ├─┬ through2#0.6.5
│ │ └── readable-stream#1.0.34
│ └── unique-stream#1.0.0
├─┬ glob-watcher#0.0.6
│ └─┬ gaze#0.5.2
│ └─┬ globule#0.1.0
│ ├─┬ glob#3.1.21
│ │ ├── graceful-fs#1.2.3
│ │ └── inherits#1.0.2
│ ├── lodash#1.0.2
│ └─┬ minimatch#0.2.14
│ ├── lru-cache#2.7.3
│ └── sigmund#1.0.1
├─┬ graceful-fs#3.0.11
│ └── natives#1.1.0
├─┬ mkdirp#0.5.1
│ └── minimist#0.0.8
├─┬ strip-bom#1.0.0
│ ├── first-chunk-stream#1.0.0
│ └── is-utf8#0.2.1
├─┬ through2#0.6.5
│ └─┬ readable-stream#1.0.34
│ ├── isarray#0.0.1
│ └── string_decoder#0.10.31
└─┬ vinyl#0.4.6
└── clone#0.2.0
npm WARN enoent ENOENT: no such file or directory, open '/Users/macbook/package.json'
npm WARN macbook No description
npm WARN macbook No repository field.
npm WARN macbook No README data
npm WARN macbook No license field.
Macbooks-MBP:~ Lililashka$ gulp -v
-bash: gulp: command not found
Macbooks-MBP:~ Lililashka$ npm uninstall -g gulp
Macbooks-MBP:~ Lililashka$ npm uninstall package-name
npm WARN enoent ENOENT: no such file or directory, open '/Users/macbook/package.json'
npm WARN macbook No description
npm WARN macbook No repository field.
npm WARN macbook No README data
npm WARN macbook No license field.
Macbooks-MBP:~ Lililashka$ npm uninstall -D package-name
npm WARN saveError ENOENT: no such file or directory, open '/Users/macbook/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/Users/macbook/package.json'
npm WARN macbook No description
npm WARN macbook No repository field.
npm WARN macbook No README data
npm WARN macbook No license field.
You need to install Gulp globally before installing it into a project
sudo npm install -g gulp
Related
I cannot require('#sentry/node'). It appears as though there is no index.js file in the final package installed. There is no reference to dist directory in package.json either.
$ npm -v
5.6.0
$ node -v
v9.4.0
$ npm install #sentry/node#4.4.1
npm WARN backend#0.0.0 No repository field.
npm WARN backend#0.0.0 No license field.
+ #sentry/node#4.4.1
added 272 packages in 7.552s
$ npm ls
backend#0.0.0 /Users/holmes/Code/backend
├─┬ UNMET DEPENDENCY #sentry/node#4.4.1
│ ├─┬ UNMET DEPENDENCY #sentry/core#4.4.1
│ │ ├── UNMET DEPENDENCY #sentry/hub#4.4.1
│ │ ├─┬ UNMET DEPENDENCY #sentry/minimal#4.4.1
│ │ │ ├── UNMET DEPENDENCY #sentry/hub#4.4.1
│ │ │ ├── UNMET DEPENDENCY #sentry/types#4.4.1
│ │ │ └── tslib#1.9.3 deduped
│ │ ├── UNMET DEPENDENCY #sentry/types#4.4.1
│ │ ├── UNMET DEPENDENCY #sentry/utils#4.4.1
│ │ └── tslib#1.9.3 deduped
│ ├─┬ UNMET DEPENDENCY #sentry/hub#4.4.1
│ │ ├── UNMET DEPENDENCY #sentry/types#4.4.1
│ │ ├── UNMET DEPENDENCY #sentry/utils#4.4.1
│ │ └── tslib#1.9.3 deduped
│ ├── UNMET DEPENDENCY #sentry/types#4.4.1
│ ├─┬ UNMET DEPENDENCY #sentry/utils#4.4.1
│ │ ├── UNMET DEPENDENCY #sentry/types#4.4.1
│ │ └── tslib#1.9.3 deduped
│ ├── UNMET DEPENDENCY #types/stack-trace#0.0.29
│ ├── cookie#0.3.1
│ ├─┬ https-proxy-agent#2.2.1
│ │ ├─┬ agent-base#4.2.1
│ │ │ └─┬ es6-promisify#5.0.0
│ │ │ └── es6-promise#4.2.5
│ │ └─┬ debug#3.2.6
│ │ └── ms#2.1.1
│ ├── lsmod#1.0.0
│ ├── stack-trace#0.0.10
│ └── tslib#1.9.3
├─┬ cheerio#0.16.0
│ ├─┬ CSSselect#0.4.1
│ │ ├── CSSwhat#0.4.7
│ │ └─┬ domutils#1.4.3
│ │ └── domelementtype#1.3.1 deduped
│ ├── entities#1.1.2
│ ├─┬ htmlparser2#3.7.3
│ │ ├── domelementtype#1.3.1
│ │ ├─┬ domhandler#2.2.1
│ │ │ └── domelementtype#1.3.1 deduped
│ │ ├─┬ domutils#1.5.1
│ │ │ ├─┬ dom-serializer#0.1.0
│ │ │ │ ├── domelementtype#1.1.3
│ │ │ │ └── entities#1.1.2 deduped
│ │ │ └── domelementtype#1.3.1 deduped
│ │ ├── entities#1.0.0
│ │ └── readable-stream#1.1.14 deduped
│ └── lodash#2.4.2
├── cron#1.0.4
├── ejs#1.0.0
├─┬ geoip-lite#1.1.9
│ ├─┬ async#2.6.1
│ │ └── lodash#4.17.11
│ ├── colors#1.3.3
│ ├─┬ glob#7.1.3
│ │ ├── fs.realpath#1.0.0
│ │ ├─┬ inflight#1.0.6
│ │ │ ├── once#1.4.0 deduped
│ │ │ └── wrappy#1.0.2
│ │ ├── inherits#2.0.3
│ │ ├─┬ minimatch#3.0.4
│ │ │ └─┬ brace-expansion#1.1.11
│ │ │ ├── balanced-match#1.0.0
│ │ │ └── concat-map#0.0.1
│ │ ├─┬ once#1.4.0
│ │ │ └── wrappy#1.0.2 deduped
│ │ └── path-is-absolute#1.0.1
│ ├─┬ iconv-lite#0.4.24
│ │ └── safer-buffer#2.1.2
│ ├── lazy#1.0.11
│ ├─┬ rimraf#2.6.2
│ │ └── glob#7.1.3 deduped
│ └─┬ unzip#0.1.11
│ ├─┬ binary#0.3.0
│ │ ├── buffers#0.1.1
│ │ └─┬ chainsaw#0.1.0
│ │ └── traverse#0.3.9 deduped
│ ├─┬ fstream#0.1.31
│ │ ├─┬ graceful-fs#3.0.11
│ │ │ └── natives#1.1.6
│ │ ├── inherits#2.0.3 deduped
│ │ ├── mkdirp#0.5.1 deduped
│ │ └── rimraf#2.6.2 deduped
│ ├─┬ match-stream#0.0.2
│ │ ├── buffers#0.1.1 deduped
│ │ └─┬ readable-stream#1.0.34
│ │ ├── core-util-is#1.0.2 deduped
│ │ ├── inherits#2.0.3 deduped
│ │ ├── isarray#0.0.1 deduped
│ │ └── string_decoder#0.10.31 deduped
│ ├─┬ pullstream#0.4.1
│ │ ├── over#0.0.5
│ │ ├─┬ readable-stream#1.0.34
│ │ │ ├── core-util-is#1.0.2 deduped
│ │ │ ├── inherits#2.0.3 deduped
│ │ │ ├── isarray#0.0.1 deduped
│ │ │ └── string_decoder#0.10.31 deduped
│ │ ├── setimmediate#1.0.5 deduped
│ │ └─┬ slice-stream#1.0.0
│ │ └─┬ readable-stream#1.0.34
│ │ ├── core-util-is#1.0.2 deduped
│ │ ├── inherits#2.0.3 deduped
│ │ ├── isarray#0.0.1 deduped
│ │ └── string_decoder#0.10.31 deduped
│ ├─┬ readable-stream#1.0.34
│ │ ├── core-util-is#1.0.2 deduped
│ │ ├── inherits#2.0.3 deduped
│ │ ├── isarray#0.0.1 deduped
│ │ └── string_decoder#0.10.31 deduped
│ └── setimmediate#1.0.5 deduped
├─┬ gm#1.16.0
│ ├── array-parallel#0.1.3
│ ├── array-series#0.1.5
│ ├── debug#0.7.0
│ ├── stream-to-buffer#0.0.1
│ └── through#2.3.8
├── iz#0.4.1
├─┬ jade#1.3.1
│ ├── character-parser#1.2.0
│ ├── commander#2.1.0
│ ├─┬ constantinople#2.0.1
│ │ └─┬ uglify-js#2.4.24
│ │ ├── async#0.2.10
│ │ ├─┬ source-map#0.1.34
│ │ │ └── amdefine#1.0.1
│ │ ├── uglify-to-browserify#1.0.2
│ │ └─┬ yargs#3.5.4
│ │ ├── camelcase#1.2.1
│ │ ├── decamelize#1.2.0
│ │ ├── window-size#0.1.0
│ │ └── wordwrap#0.0.2
│ ├── mkdirp#0.3.5
│ ├─┬ monocle#1.1.51
│ │ └─┬ readdirp#0.2.5
│ │ └── minimatch#3.0.4 deduped
│ ├─┬ transformers#2.1.0
│ │ ├─┬ css#1.0.8
│ │ │ ├── css-parse#1.0.4
│ │ │ └── css-stringify#1.0.5
│ │ ├─┬ promise#2.0.0
│ │ │ └── is-promise#1.0.1
│ │ └─┬ uglify-js#2.2.5
│ │ ├─┬ optimist#0.3.7
│ │ │ └── wordwrap#0.0.2 deduped
│ │ └── source-map#0.1.34 deduped
│ └─┬ with#3.0.1
│ └── uglify-js#2.4.24 deduped
├─┬ juice#1.0.0
│ ├── batch#0.5.2
│ ├─┬ cheerio#0.18.0
│ │ ├── CSSselect#0.4.1 deduped
│ │ ├─┬ dom-serializer#0.0.1
│ │ │ ├── domelementtype#1.1.3
│ │ │ └── entities#1.1.2 deduped
│ │ ├── entities#1.1.2 deduped
│ │ ├─┬ htmlparser2#3.8.3
│ │ │ ├── domelementtype#1.1.3 deduped
│ │ │ ├─┬ domhandler#2.3.0
│ │ │ │ └── domelementtype#1.1.3 deduped
│ │ │ ├─┬ domutils#1.5.1
│ │ │ │ ├── dom-serializer#0.0.1 deduped
│ │ │ │ └── domelementtype#1.1.3 deduped
│ │ │ ├── entities#1.0.0
│ │ │ └── readable-stream#1.1.14 deduped
│ │ └── lodash#2.4.2 deduped
│ ├── commander#2.3.0
│ ├── cssom#0.3.0
│ ├── slick#1.12.1
│ └─┬ web-resource-inliner#1.0.0
│ ├── async#0.9.2
│ ├─┬ clean-css#1.1.7
│ │ └── commander#2.0.0
│ ├─┬ datauri#0.2.1
│ │ ├── mimer#0.3.2
│ │ └── templayed#0.2.3
│ ├─┬ request#2.88.0
│ │ ├── aws-sign2#0.7.0
│ │ ├── aws4#1.8.0 deduped
│ │ ├── caseless#0.12.0 deduped
│ │ ├─┬ combined-stream#1.0.7
│ │ │ └── delayed-stream#1.0.0
│ │ ├── extend#3.0.2 deduped
│ │ ├── forever-agent#0.6.1
│ │ ├─┬ form-data#2.3.3
│ │ │ ├── asynckit#0.4.0 deduped
│ │ │ ├── combined-stream#1.0.7 deduped
│ │ │ └── mime-types#2.1.21 deduped
│ │ ├── har-validator#5.1.3 deduped
│ │ ├─┬ http-signature#1.2.0
│ │ │ ├── assert-plus#1.0.0
│ │ │ ├── jsprim#1.4.1 deduped
│ │ │ └── sshpk#1.15.2 deduped
│ │ ├── is-typedarray#1.0.0 deduped
│ │ ├── isstream#0.1.2 deduped
│ │ ├── json-stringify-safe#5.0.1 deduped
│ │ ├── mime-types#2.1.21 deduped
│ │ ├── oauth-sign#0.9.0
│ │ ├── performance-now#2.1.0 deduped
│ │ ├── qs#6.5.2
│ │ ├── safe-buffer#5.1.2 deduped
│ │ ├─┬ tough-cookie#2.4.3
│ │ │ ├── psl#1.1.29 deduped
│ │ │ └── punycode#1.4.1
│ │ ├─┬ tunnel-agent#0.6.0
│ │ │ └── safe-buffer#5.1.2 deduped
│ │ └── uuid#3.3.2
│ ├─┬ uglify-js#2.4.1
│ │ ├── async#0.2.10
│ │ ├── optimist#0.3.7 deduped
│ │ ├── source-map#0.1.34 deduped
│ │ └── uglify-to-browserify#1.0.2 deduped
│ └── xtend#4.0.1
├─┬ kava#0.1.1-alpha
│ └─┬ mysql#0.9.6
│ └─┬ hashish#0.0.4
│ └── traverse#0.3.9
├─┬ knox#0.9.0
│ ├─┬ debug#1.0.2
│ │ └── ms#0.6.2
│ ├── mime#1.2.11
│ ├── once#1.3.0
│ ├── stream-counter#1.0.0
│ └─┬ xml2js#0.4.4
│ ├── sax#0.6.0
│ └─┬ xmlbuilder#2.2.1
│ └── lodash-node#2.4.1
├── marked#0.3.19
├─┬ mkdirp#0.5.1
│ └── minimist#0.0.8
├── moment#2.6.0
├─┬ mysql#2.3.2
│ ├── bignumber.js#1.4.0
│ ├─┬ readable-stream#1.1.14
│ │ ├── core-util-is#1.0.2
│ │ ├── inherits#2.0.3 deduped
│ │ ├── isarray#0.0.1
│ │ └── string_decoder#0.10.31
│ └── require-all#0.0.8
├─┬ nib#1.0.4
│ └── stylus#0.45.1 deduped
├─┬ nodemailer#0.6.5
│ ├─┬ directmail#0.1.8
│ │ └── simplesmtp#0.3.35 deduped
│ ├── he#0.3.6
│ ├─┬ mailcomposer#0.2.12
│ │ ├─┬ dkim-signer#0.1.2
│ │ │ ├── mimelib#0.2.19 deduped
│ │ │ └── punycode#1.2.4
│ │ ├─┬ follow-redirects#0.0.3
│ │ │ └── underscore#1.9.1
│ │ ├── he#0.3.6 deduped
│ │ ├── mime#1.2.11 deduped
│ │ └─┬ mimelib#0.2.19
│ │ ├── addressparser#0.3.2
│ │ └─┬ encoding#0.1.12
│ │ └── iconv-lite#0.4.24 deduped
│ ├── public-address#0.1.2
│ ├── readable-stream#1.1.14 deduped
│ └─┬ simplesmtp#0.3.35
│ ├── rai#0.1.12
│ └── xoauth2#0.1.8
├─┬ open-graph#0.1.7
│ ├─┬ cheerio#0.17.0
│ │ ├── CSSselect#0.4.1 deduped
│ │ ├─┬ dom-serializer#0.0.1
│ │ │ ├── domelementtype#1.1.3
│ │ │ └── entities#1.1.2 deduped
│ │ ├── entities#1.1.2 deduped
│ │ ├── htmlparser2#3.7.3 deduped
│ │ └── lodash#2.4.2 deduped
│ └─┬ request#2.88.0
│ ├── aws-sign2#0.7.0
│ ├── aws4#1.8.0
│ ├── caseless#0.12.0
│ ├─┬ combined-stream#1.0.7
│ │ └── delayed-stream#1.0.0
│ ├── extend#3.0.2
│ ├── forever-agent#0.6.1
│ ├─┬ form-data#2.3.3
│ │ ├── asynckit#0.4.0
│ │ ├── combined-stream#1.0.7 deduped
│ │ └── mime-types#2.1.21 deduped
│ ├─┬ har-validator#5.1.3
│ │ ├─┬ ajv#6.6.1
│ │ │ ├── fast-deep-equal#2.0.1
│ │ │ ├── fast-json-stable-stringify#2.0.0
│ │ │ ├── json-schema-traverse#0.4.1
│ │ │ └─┬ uri-js#4.2.2
│ │ │ └── punycode#2.1.1 deduped
│ │ └── har-schema#2.0.0
│ ├─┬ http-signature#1.2.0
│ │ ├── assert-plus#1.0.0
│ │ ├─┬ jsprim#1.4.1
│ │ │ ├── assert-plus#1.0.0
│ │ │ ├── extsprintf#1.3.0
│ │ │ ├── json-schema#0.2.3
│ │ │ └─┬ verror#1.10.0
│ │ │ ├── assert-plus#1.0.0
│ │ │ ├── core-util-is#1.0.2 deduped
│ │ │ └── extsprintf#1.3.0 deduped
│ │ └─┬ sshpk#1.15.2
│ │ ├─┬ asn1#0.2.4
│ │ │ └── safer-buffer#2.1.2 deduped
│ │ ├── assert-plus#1.0.0
│ │ ├─┬ bcrypt-pbkdf#1.0.2
│ │ │ └── tweetnacl#0.14.5 deduped
│ │ ├─┬ dashdash#1.14.1
│ │ │ └── assert-plus#1.0.0
│ │ ├─┬ ecc-jsbn#0.1.2
│ │ │ ├── jsbn#0.1.1 deduped
│ │ │ └── safer-buffer#2.1.2 deduped
│ │ ├─┬ getpass#0.1.7
│ │ │ └── assert-plus#1.0.0
│ │ ├── jsbn#0.1.1
│ │ ├── safer-buffer#2.1.2 deduped
│ │ └── tweetnacl#0.14.5
│ ├── is-typedarray#1.0.0
│ ├── isstream#0.1.2
│ ├── json-stringify-safe#5.0.1 deduped
│ ├─┬ mime-types#2.1.21
│ │ └── mime-db#1.37.0
│ ├── oauth-sign#0.9.0
│ ├── performance-now#2.1.0
│ ├── qs#6.5.2
│ ├── safe-buffer#5.1.2
│ ├─┬ tough-cookie#2.4.3
│ │ ├── psl#1.1.29 deduped
│ │ └── punycode#1.4.1
│ ├─┬ tunnel-agent#0.6.0
│ │ └── safe-buffer#5.1.2 deduped
│ └── uuid#3.3.2
├─┬ paralyze#1.0.0
│ └── setimmediate#1.0.5
├─┬ rabbit.js#0.4.4
│ ├─┬ amqplib#0.3.2
│ │ ├─┬ bitsyntax#0.0.4
│ │ │ └── buffer-more-ints#0.0.2 deduped
│ │ ├── buffer-more-ints#0.0.2
│ │ ├── readable-stream#1.1.14 deduped
│ │ └── when#3.6.4
│ ├── node-uuid#1.4.8
│ └── readable-stream#1.1.14 deduped
├── redis#0.10.3
├─┬ request#2.36.0
│ ├── aws-sign2#0.5.0
│ ├── forever-agent#0.5.2
│ ├─┬ form-data#0.1.4
│ │ ├── async#0.9.2
│ │ ├─┬ combined-stream#0.0.7
│ │ │ └── delayed-stream#0.0.5
│ │ └── mime#1.2.11 deduped
│ ├─┬ hawk#1.0.0
│ │ ├─┬ boom#0.4.2
│ │ │ └── hoek#0.9.1 deduped
│ │ ├─┬ cryptiles#0.2.2
│ │ │ └── boom#0.4.2 deduped
│ │ ├── hoek#0.9.1
│ │ └─┬ sntp#0.2.4
│ │ └── hoek#0.9.1 deduped
│ ├─┬ http-signature#0.10.1
│ │ ├── asn1#0.1.11
│ │ ├── assert-plus#0.1.5
│ │ └── ctype#0.5.3
│ ├── json-stringify-safe#5.0.1
│ ├── mime#1.2.11 deduped
│ ├── node-uuid#1.4.8
│ ├── oauth-sign#0.3.0
│ ├── qs#0.6.6
│ ├─┬ tough-cookie#2.5.0
│ │ ├── psl#1.1.29
│ │ └── punycode#2.1.1
│ └── tunnel-agent#0.4.3
├─┬ stripe#2.6.3
│ └── when#3.1.0
├─┬ stylus#0.45.1
│ ├── css-parse#1.7.0
│ ├── debug#0.7.0 deduped
│ ├─┬ glob#3.2.11
│ │ ├── inherits#2.0.3 deduped
│ │ └─┬ minimatch#0.3.0
│ │ ├── lru-cache#2.7.3
│ │ └── sigmund#1.0.1
│ ├── mkdirp#0.3.5
│ └── sax#0.5.8
└── yarn#0.1.3
npm ERR! missing: #sentry/node#4.4.1, required by backend#0.0.0
npm ERR! missing: #sentry/core#4.4.1, required by #sentry/node#4.4.1
npm ERR! missing: #sentry/hub#4.4.1, required by #sentry/node#4.4.1
npm ERR! missing: #sentry/types#4.4.1, required by #sentry/node#4.4.1
npm ERR! missing: #sentry/utils#4.4.1, required by #sentry/node#4.4.1
npm ERR! missing: #types/stack-trace#0.0.29, required by #sentry/node#4.4.1
npm ERR! missing: #sentry/hub#4.4.1, required by #sentry/core#4.4.1
npm ERR! missing: #sentry/minimal#4.4.1, required by #sentry/core#4.4.1
npm ERR! missing: #sentry/types#4.4.1, required by #sentry/core#4.4.1
npm ERR! missing: #sentry/utils#4.4.1, required by #sentry/core#4.4.1
npm ERR! missing: #sentry/hub#4.4.1, required by #sentry/minimal#4.4.1
npm ERR! missing: #sentry/types#4.4.1, required by #sentry/minimal#4.4.1
npm ERR! missing: #sentry/types#4.4.1, required by #sentry/hub#4.4.1
npm ERR! missing: #sentry/utils#4.4.1, required by #sentry/hub#4.4.1
npm ERR! missing: #sentry/types#4.4.1, required by #sentry/utils#4.4.1
$ ls -al node_modules/#sentry
total 0
drwxr-xr-x 8 holmes staff 256 Dec 11 17:37 .
drwxr-xr-x 190 holmes staff 6080 Dec 11 17:37 ..
drwxr-xr-x 6 holmes staff 192 Dec 11 17:37 core
drwxr-xr-x 6 holmes staff 192 Dec 11 17:37 hub
drwxr-xr-x 6 holmes staff 192 Dec 11 17:37 minimal
drwxr-xr-x 6 holmes staff 192 Dec 11 17:37 node
drwxr-xr-x 6 holmes staff 192 Dec 11 17:37 types
drwxr-xr-x 38 holmes staff 1216 Dec 11 17:37 utils
$ ls -al node_modules/#sentry/node
total 24
drwxr-xr-x 6 holmes staff 192 Dec 11 17:37 .
drwxr-xr-x 8 holmes staff 256 Dec 11 17:37 ..
-rw-r--r-- 1 holmes staff 1527 Oct 26 1985 LICENSE
-rw-r--r-- 1 holmes staff 1942 Oct 26 1985 README.md
drwxr-xr-x 25 holmes staff 800 Dec 11 17:37 dist
-rw-r--r-- 1 holmes staff 1631 Dec 11 17:37 package.json
$ cat node_modules/#sentry/node/package.json
{
"_from": "#sentry/node#4.4.1",
"_id": "#sentry/node#4.4.1",
"_inBundle": false,
"_integrity": "sha512-qPqF9A5GaAKEMFJRfBPGQ9kyZLXGv2iRhJUbc7DyO7F9LWsIqjokclr2F5qyOFVQAhkv/qLjAE1biVFG8/LwUQ==",
"_location": "/#sentry/node",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "#sentry/node#4.4.1",
"name": "#sentry/node",
"escapedName": "#sentry%2fnode",
"scope": "#sentry",
"rawSpec": "4.4.1",
"saveSpec": null,
"fetchSpec": "4.4.1"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/#sentry/node/-/node-4.4.1.tgz",
"_shasum": "20cb65307015c8916ad3b3556694adde94104c74",
"_shrinkwrap": null,
"_spec": "#sentry/node#4.4.1",
"_where": "/Users/holmes/Code/backend",
"bin": null,
"bundleDependencies": false,
"dependencies": {
"#sentry/core": "4.4.1",
"#sentry/hub": "4.4.1",
"#sentry/types": "4.4.1",
"#sentry/utils": "4.4.1",
"#types/stack-trace": "0.0.29",
"cookie": "0.3.1",
"https-proxy-agent": "^2.2.1",
"lsmod": "1.0.0",
"stack-trace": "0.0.10",
"tslib": "^1.9.3"
},
"deprecated": false,
"devDependencies": {
"#types/cookie": "0.3.1",
"#types/node": "^10.12.10",
"express": "^4.16.4",
"jest": "^22.4.3",
"npm-run-all": "^4.1.2",
"prettier": "^1.14.0",
"prettier-check": "^2.0.0",
"rimraf": "^2.6.2",
"tslint": "^5.11.0",
"typescript": "^3.0.1"
},
"engines": {
"node": ">=6"
},
"name": "#sentry/node",
"optionalDependencies": {},
"peerDependencies": {},
"version": "4.4.1"
}
As you can see there is no "main": "dist/index.js", line in the final package.json. What could be causing such an issue? I've installed #sentry/node in other projects, but for some reason it's not working consistently on this older project.
It seems as though my issue was related to a bad install of npm/node. I'm not sure what exactly the issue was with it, but to fix it I did as follows:
Install nvm.
Installed node/npm from nvm.
Removed my node_modules directory.
For good measure, I chmod -R myuser ~/.npm
These steps fixed the issue for me. As for what the issue was, I'm not sure. It could be related to conflicts with system node and n (which I was using instead of nvm).
I want to try new version of jhipster but i am not able to generate a sample project. I have a jhipster error :
I install npm, yo, bower, generator-jhipster as suggested in the Jhipster documentation.
generator-jhipster installation :
npm install -g generator-jhipster
/Users/myuser/npm/bin/jhipster -> /Users/myuser/npm/lib/node_modules/generator-jhipster/cli/jhipster.js
> generator-jhipster#4.6.2 install /Users/myuser/npm/lib/node_modules/generator-jhipster
> tabtab install --name jhipster --auto
tabtab:installer Installing completion script to bashrc directory +0ms
tabtab:installer Installing completion script to /Users/myuser/.bashrc directory +6ms
tabtab:installer Writing to /Users/myuser/.bashrc file in append mode +1ms
tabtab:installer Writing actual completion script to /Users/myuser/npm/lib/node_modules/generator-jhipster/node_modules/tabtab/.completions/jhipster.bash +1ms
tabtab:installer Already installed jhipster in /Users/myuser/.bashrc +3ms
> spawn-sync#1.0.15 postinstall /Users/myuser/npm/lib/node_modules/generator-jhipster/node_modules/spawn-sync
> node postinstall
/Users/myuser/npm/lib
└─┬ generator-jhipster#4.6.2
├─┬ chalk#2.0.1
│ ├─┬ ansi-styles#3.2.0
│ │ └─┬ color-convert#1.9.0
│ │ └── color-name#1.1.3
│ ├── escape-string-regexp#1.0.5
│ └─┬ supports-color#4.2.1
│ └── has-flag#2.0.0
├─┬ cheerio#0.22.0
│ ├─┬ css-select#1.2.0
│ │ ├── boolbase#1.0.0
│ │ ├── css-what#2.1.0
│ │ ├── domutils#1.5.1
│ │ └── nth-check#1.0.1
│ ├─┬ dom-serializer#0.1.0
│ │ └── domelementtype#1.1.3
│ ├── entities#1.1.1
│ ├─┬ htmlparser2#3.9.2
│ │ ├── domelementtype#1.3.0
│ │ ├── domhandler#2.4.1
│ │ └─┬ readable-stream#2.3.3
│ │ ├── core-util-is#1.0.2
│ │ ├── isarray#1.0.0
│ │ ├── process-nextick-args#1.0.7
│ │ ├── string_decoder#1.0.3
│ │ └── util-deprecate#1.0.2
│ ├── lodash.assignin#4.2.0
│ ├── lodash.bind#4.2.1
│ ├── lodash.defaults#4.2.0
│ ├── lodash.filter#4.6.0
│ ├── lodash.flatten#4.4.0
│ ├── lodash.foreach#4.5.0
│ ├── lodash.map#4.6.0
│ ├── lodash.merge#4.6.0
│ ├── lodash.pick#4.4.0
│ ├── lodash.reduce#4.6.0
│ ├── lodash.reject#4.6.0
│ └── lodash.some#4.6.0
├─┬ commander#2.10.0
│ └── graceful-readlink#1.0.1
├── didyoumean#1.2.1
├── ejs#2.5.6
├─┬ glob#7.1.2
│ ├── fs.realpath#1.0.0
│ ├─┬ inflight#1.0.6
│ │ └── wrappy#1.0.2
│ ├── inherits#2.0.3
│ ├─┬ minimatch#3.0.4
│ │ └─┬ brace-expansion#1.1.8
│ │ ├── balanced-match#1.0.0
│ │ └── concat-map#0.0.1
│ ├── once#1.4.0
│ └── path-is-absolute#1.0.1
├─┬ html-wiring#1.2.0
│ ├─┬ cheerio#0.19.0
│ │ ├─┬ css-select#1.0.0
│ │ │ ├── css-what#1.0.0
│ │ │ └── domutils#1.4.3
│ │ ├─┬ htmlparser2#3.8.3
│ │ │ ├── domhandler#2.3.0
│ │ │ ├── domutils#1.5.1
│ │ │ ├── entities#1.0.0
│ │ │ └─┬ readable-stream#1.1.14
│ │ │ ├── isarray#0.0.1
│ │ │ └── string_decoder#0.10.31
│ │ └── lodash#3.10.1
│ └─┬ detect-newline#1.0.3
│ └── get-stdin#4.0.1
├─┬ insight#0.8.4
│ ├── async#1.5.2
│ ├─┬ chalk#1.1.3
│ │ ├── ansi-styles#2.2.1
│ │ ├── has-ansi#2.0.0
│ │ └── supports-color#2.0.0
│ ├─┬ configstore#1.4.0
│ │ ├── graceful-fs#4.1.11
│ │ ├── os-tmpdir#1.0.2
│ │ ├── osenv#0.1.4
│ │ ├── uuid#2.0.3
│ │ ├─┬ write-file-atomic#1.3.4
│ │ │ ├── imurmurhash#0.1.4
│ │ │ └── slide#1.1.6
│ │ └── xdg-basedir#2.0.0
│ ├─┬ inquirer#0.10.1
│ │ ├── ansi-escapes#1.4.0
│ │ ├── ansi-regex#2.1.1
│ │ ├─┬ chalk#1.1.3
│ │ │ ├── ansi-styles#2.2.1
│ │ │ └── supports-color#2.0.0
│ │ ├─┬ cli-cursor#1.0.2
│ │ │ └─┬ restore-cursor#1.0.1
│ │ │ ├── exit-hook#1.1.1
│ │ │ └── onetime#1.1.0
│ │ ├── cli-width#1.1.1
│ │ ├── figures#1.7.0
│ │ ├── lodash#3.10.1
│ │ ├─┬ readline2#1.0.1
│ │ │ ├── code-point-at#1.1.0
│ │ │ ├─┬ is-fullwidth-code-point#1.0.0
│ │ │ │ └── number-is-nan#1.0.1
│ │ │ └── mute-stream#0.0.5
│ │ ├── run-async#0.1.0
│ │ ├── rx-lite#3.1.2
│ │ ├── strip-ansi#3.0.1
│ │ └── through#2.3.8
│ ├─┬ lodash.debounce#3.1.1
│ │ └── lodash._getnative#3.9.1
│ ├── object-assign#4.1.1
│ ├─┬ os-name#1.0.3
│ │ ├── osx-release#1.1.0
│ │ └── win-release#1.1.1
│ ├─┬ request#2.81.0
│ │ ├── aws-sign2#0.6.0
│ │ ├── aws4#1.6.0
│ │ ├── caseless#0.12.0
│ │ ├─┬ combined-stream#1.0.5
│ │ │ └── delayed-stream#1.0.0
│ │ ├── extend#3.0.1
│ │ ├── forever-agent#0.6.1
│ │ ├─┬ form-data#2.1.4
│ │ │ └── asynckit#0.4.0
│ │ ├─┬ har-validator#4.2.1
│ │ │ ├─┬ ajv#4.11.8
│ │ │ │ ├── co#4.6.0
│ │ │ │ └─┬ json-stable-stringify#1.0.1
│ │ │ │ └── jsonify#0.0.0
│ │ │ └── har-schema#1.0.5
│ │ ├─┬ 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.4.0
│ │ │ │ ├── assert-plus#1.0.0
│ │ │ │ ├── extsprintf#1.0.2
│ │ │ │ ├── json-schema#0.2.3
│ │ │ │ └── verror#1.3.6
│ │ │ └─┬ sshpk#1.13.1
│ │ │ ├── asn1#0.2.3
│ │ │ ├── assert-plus#1.0.0
│ │ │ ├── bcrypt-pbkdf#1.0.1
│ │ │ ├─┬ dashdash#1.14.1
│ │ │ │ └── assert-plus#1.0.0
│ │ │ ├── ecc-jsbn#0.1.1
│ │ │ ├─┬ getpass#0.1.7
│ │ │ │ └── assert-plus#1.0.0
│ │ │ ├── jsbn#0.1.1
│ │ │ └── tweetnacl#0.14.5
│ │ ├── is-typedarray#1.0.0
│ │ ├── isstream#0.1.2
│ │ ├── json-stringify-safe#5.0.1
│ │ ├─┬ mime-types#2.1.16
│ │ │ └── mime-db#1.29.0
│ │ ├── oauth-sign#0.8.2
│ │ ├── performance-now#0.2.0
│ │ ├── qs#6.4.0
│ │ ├── safe-buffer#5.1.1
│ │ ├── stringstream#0.0.5
│ │ └── tunnel-agent#0.6.0
│ ├─┬ tough-cookie#2.3.2
│ │ └── punycode#1.4.1
│ └── uuid#3.1.0
├── jhipster-core#1.3.5
├─┬ js-yaml#3.9.0
│ ├─┬ argparse#1.0.9
│ │ └── sprintf-js#1.0.3
│ └── esprima#4.0.0
├── lodash#4.17.4
├─┬ meow#3.7.0
│ ├─┬ camelcase-keys#2.1.0
│ │ └── camelcase#2.1.1
│ ├── decamelize#1.2.0
│ ├─┬ loud-rejection#1.6.0
│ │ ├─┬ currently-unhandled#0.4.1
│ │ │ └── array-find-index#1.0.2
│ │ └── signal-exit#3.0.2
│ ├── map-obj#1.0.1
│ ├── minimist#1.2.0
│ ├─┬ normalize-package-data#2.4.0
│ │ ├── hosted-git-info#2.5.0
│ │ ├─┬ is-builtin-module#1.0.0
│ │ │ └── builtin-modules#1.1.1
│ │ └─┬ validate-npm-package-license#3.0.1
│ │ ├─┬ spdx-correct#1.0.2
│ │ │ └── spdx-license-ids#1.2.2
│ │ └── spdx-expression-parse#1.0.4
│ ├─┬ read-pkg-up#1.0.1
│ │ ├─┬ find-up#1.1.2
│ │ │ └── path-exists#2.1.0
│ │ └─┬ read-pkg#1.1.0
│ │ ├─┬ load-json-file#1.1.0
│ │ │ └─┬ parse-json#2.2.0
│ │ │ └─┬ error-ex#1.3.1
│ │ │ └── is-arrayish#0.2.1
│ │ └── path-type#1.1.0
│ ├─┬ redent#1.0.0
│ │ ├─┬ indent-string#2.1.0
│ │ │ └─┬ repeating#2.0.1
│ │ │ └── is-finite#1.0.2
│ │ └── strip-indent#1.0.1
│ └── trim-newlines#1.0.0
├─┬ mkdirp#0.5.1
│ └── minimist#0.0.8
├── pluralize#5.0.0
├─┬ randexp#0.4.5
│ ├── discontinuous-range#1.0.0
│ └── ret#0.1.14
├── semver#5.3.0
├─┬ shelljs#0.7.8
│ ├── interpret#1.0.3
│ └─┬ rechoir#0.6.2
│ └─┬ resolve#1.4.0
│ └── path-parse#1.0.5
├─┬ tabtab#2.2.2
│ ├─┬ debug#2.6.8
│ │ └── ms#2.0.0
│ ├─┬ inquirer#1.2.3
│ │ ├─┬ chalk#1.1.3
│ │ │ ├── ansi-styles#2.2.1
│ │ │ └── supports-color#2.0.0
│ │ ├── cli-width#2.1.0
│ │ ├─┬ external-editor#1.1.1
│ │ │ ├─┬ spawn-sync#1.0.15
│ │ │ │ ├─┬ concat-stream#1.6.0
│ │ │ │ │ └── typedarray#0.0.6
│ │ │ │ └── os-shim#0.1.3
│ │ │ └── tmp#0.0.29
│ │ ├── mute-stream#0.0.6
│ │ ├─┬ pinkie-promise#2.0.1
│ │ │ └── pinkie#2.0.4
│ │ ├── run-async#2.3.0
│ │ ├── rx#4.1.0
│ │ └── string-width#1.0.2
│ ├── lodash.difference#4.5.0
│ ├── lodash.uniq#4.5.0
│ └─┬ npmlog#2.0.4
│ ├── ansi#0.3.1
│ ├─┬ are-we-there-yet#1.1.4
│ │ └── delegates#1.0.0
│ └─┬ gauge#1.2.7
│ ├── has-unicode#2.0.1
│ ├── lodash.pad#4.5.1
│ ├── lodash.padend#4.6.1
│ └── lodash.padstart#4.6.1
├─┬ yeoman-environment#2.0.0
│ ├─┬ chalk#1.1.3
│ │ ├── ansi-styles#2.2.1
│ │ └── supports-color#2.0.0
│ ├── diff#3.3.0
│ ├─┬ globby#6.1.0
│ │ ├─┬ array-union#1.0.2
│ │ │ └── array-uniq#1.0.3
│ │ └── pify#2.3.0
│ ├── grouped-queue#0.3.3
│ ├─┬ inquirer#3.2.1
│ │ ├── ansi-escapes#2.0.0
│ │ ├─┬ chalk#2.0.1
│ │ │ ├── ansi-styles#3.2.0
│ │ │ └── supports-color#4.2.1
│ │ ├─┬ cli-cursor#2.1.0
│ │ │ └─┬ restore-cursor#2.0.0
│ │ │ └─┬ onetime#2.0.1
│ │ │ └── mimic-fn#1.1.0
│ │ ├── cli-width#2.1.0
│ │ ├─┬ external-editor#2.0.4
│ │ │ ├── iconv-lite#0.4.18
│ │ │ ├── jschardet#1.5.0
│ │ │ └── tmp#0.0.31
│ │ ├── figures#2.0.0
│ │ ├── mute-stream#0.0.7
│ │ ├── run-async#2.3.0
│ │ ├── rx-lite#4.0.8
│ │ ├── rx-lite-aggregates#4.0.8
│ │ ├─┬ string-width#2.1.1
│ │ │ ├── is-fullwidth-code-point#2.0.0
│ │ │ └── strip-ansi#4.0.0
│ │ └─┬ strip-ansi#4.0.0
│ │ └── ansi-regex#3.0.0
│ ├─┬ is-scoped#1.0.0
│ │ └── scoped-regex#1.0.0
│ ├─┬ log-symbols#1.0.2
│ │ └─┬ chalk#1.1.3
│ │ ├── ansi-styles#2.2.1
│ │ └── supports-color#2.0.0
│ ├─┬ mem-fs#1.1.3
│ │ ├─┬ vinyl#1.2.0
│ │ │ ├── clone#1.0.2
│ │ │ ├── clone-stats#0.0.1
│ │ │ └── replace-ext#0.0.1
│ │ └─┬ vinyl-file#2.0.0
│ │ ├─┬ strip-bom#2.0.0
│ │ │ └── is-utf8#0.2.1
│ │ └─┬ strip-bom-stream#2.0.0
│ │ └── first-chunk-stream#2.0.0
│ ├── text-table#0.2.0
│ └── untildify#3.0.2
└─┬ yeoman-generator#1.1.1
├── async#2.5.0
├─┬ chalk#1.1.3
│ ├── ansi-styles#2.2.1
│ └── supports-color#2.0.0
├─┬ class-extend#0.1.2
│ └── object-assign#2.1.1
├─┬ cli-table#0.3.1
│ └── colors#1.0.3
├─┬ cross-spawn#5.1.0
│ ├─┬ lru-cache#4.1.1
│ │ ├── pseudomap#1.0.2
│ │ └── yallist#2.1.2
│ ├─┬ shebang-command#1.2.0
│ │ └── shebang-regex#1.0.0
│ └─┬ which#1.2.14
│ └── isexe#2.0.0
├── dargs#5.1.0
├── dateformat#2.0.0
├── detect-conflict#1.0.1
├─┬ error#7.0.2
│ ├── string-template#0.2.1
│ └── xtend#4.0.1
├─┬ find-up#2.1.0
│ └─┬ locate-path#2.0.0
│ ├─┬ p-locate#2.0.0
│ │ └── p-limit#1.1.0
│ └── path-exists#3.0.0
├─┬ github-username#3.0.0
│ └─┬ gh-got#5.0.0
│ ├─┬ got#6.7.1
│ │ ├─┬ create-error-class#3.0.2
│ │ │ └── capture-stack-trace#1.0.0
│ │ ├── duplexer3#0.1.4
│ │ ├── get-stream#3.0.0
│ │ ├── is-redirect#1.0.0
│ │ ├── is-retry-allowed#1.1.0
│ │ ├── is-stream#1.1.0
│ │ ├── lowercase-keys#1.0.0
│ │ ├── timed-out#4.0.1
│ │ ├── unzip-response#2.0.1
│ │ └─┬ url-parse-lax#1.0.0
│ │ └── prepend-http#1.0.4
│ └── is-plain-obj#1.1.0
├─┬ istextorbinary#2.1.0
│ ├── binaryextensions#2.0.0
│ ├── editions#1.3.3
│ └── textextensions#2.1.0
├─┬ mem-fs-editor#3.0.2
│ ├── commondir#1.0.1
│ ├── deep-extend#0.4.2
│ ├─┬ multimatch#2.1.0
│ │ ├── array-differ#1.0.0
│ │ └── arrify#1.0.1
│ └─┬ vinyl#2.1.0
│ ├── clone#2.1.1
│ ├── clone-buffer#1.0.0
│ ├── clone-stats#1.0.0
│ ├── cloneable-readable#1.0.0
│ ├── remove-trailing-separator#1.0.2
│ └── replace-ext#1.0.0
├── path-exists#3.0.0
├── pretty-bytes#4.0.2
├── read-chunk#2.0.0
├─┬ read-pkg-up#2.0.0
│ └─┬ read-pkg#2.0.0
│ ├─┬ load-json-file#2.0.0
│ │ └── strip-bom#3.0.0
│ └── path-type#2.0.0
├── rimraf#2.6.1
├─┬ run-async#2.3.0
│ └── is-promise#2.1.0
├── through2#2.0.3
├─┬ user-home#2.0.0
│ └── os-homedir#1.0.2
└─┬ yeoman-environment#1.6.6
├── diff#2.2.3
├─┬ globby#4.1.0
│ └── glob#6.0.4
├─┬ inquirer#1.2.3
│ ├── cli-width#2.1.0
│ └── mute-stream#0.0.6
└── untildify#2.1.0*
--
hubtalents-jhipster myuser$ yo jhipster
Error jhipster
You don't seem to have a generator with the name jhipster installed.
You can see available generators with npm search yeoman-generator and then install them with npm install [name].
To see the 1 registered generators run yo with the `--help` option.
I don't understand what's happen. The generator is installed without error but it's not found by yo. Is there a mistake in my configuration or install ?
Thanks
With the new version of JHipster, run only the command 'jhipster'
jhipster
And not 'yo jhipster'
I think you should probably type this in your command line interface:
update NPM: npm install -g npm
To install JHipster, type:
npm install -g generator-jhipster
Have you tried yarn? Let's say you are on Ubuntu, you can install yarn here and run these:
yarn global add yo
yarn global add generator-jhipster
Surely you can skip installing yo if it's already exists in PATH.
Check that npm, node and yarn are up to date, I had the same problem and I solved it by purging and reinstalling both.
if you are on ubuntu this might help.
Use jhipster upgrade assuming that your project meet the upgrade requirements - has a git repo containing a .yo-rc.json file and a .jhipster directory.
I've been attempting to install the twilio sms marketing example app (https://github.com/TwilioDevEd/marketing-notifications-node/tree/master) . I've installed mongodb and mongo and have been able to run them without any problems. The problems occur when I try to run the node . command. I receive throw errors. Here is the error I receive when I try to use node . in the project directory.
MacBook-Pro:marketing-notifications-node-master user$ node .
module.js:471
throw err;
^
Error: Cannot find module 'mongodb/node_modules/bson'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/$USER/Desktop/marketing-notifications-node-master/node_modules/mongoose/lib/drivers/node-mongodb-native/objectid.js:8:52)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
MacBook-Pro:marketing-notifications-node-master $USER$
I really need help to figure this out.
I've tried
npm cache clean
npm install -g npm#latest
npm install
npm install
output:
/Users/$USER/.npm-packages/bin/npm -> /Users/$USER/.npm-packages/lib/node_modules/npm/bin/npm-cli.js
/Users/$USER/.npm-packages/lib
└─┬ npm#4.3.0
├── abbrev#1.0.9
├── ansi-regex#2.1.1
├── ansicolors#0.3.2
├── ansistyles#0.1.3
├── aproba#1.1.1
├── archy#1.0.0
├── asap#2.0.5
├── chownr#1.0.1
├── cmd-shim#2.0.2
├─┬ columnify#1.5.4
│ └─┬ wcwidth#1.0.0
│ └─┬ defaults#1.0.3
│ └── clone#1.0.2
├─┬ config-chain#1.1.11
│ └── proto-list#1.2.4
├── debuglog#1.0.1
├── dezalgo#1.0.3
├── editor#1.0.0
├── fs-vacuum#1.2.9
├── fs-write-stream-atomic#1.0.8
├── fstream#1.0.10
├─┬ fstream-npm#1.2.0
│ └─┬ fstream-ignore#1.0.5
│ └─┬ minimatch#3.0.3
│ └─┬ brace-expansion#1.1.6
│ ├── balanced-match#0.4.2
│ └── concat-map#0.0.1
├─┬ glob#7.1.1
│ ├── fs.realpath#1.0.0
│ ├─┬ minimatch#3.0.3
│ │ └─┬ brace-expansion#1.1.6
│ │ ├── balanced-match#0.4.2
│ │ └── concat-map#0.0.1
│ └── path-is-absolute#1.0.1
├── graceful-fs#4.1.11
├── has-unicode#2.0.1
├── hosted-git-info#2.2.0
├── iferr#0.1.5
├── imurmurhash#0.1.4
├── inflight#1.0.6
├── inherits#2.0.3
├── ini#1.3.4
├─┬ init-package-json#1.9.4
│ ├─┬ glob#6.0.4
│ │ ├─┬ minimatch#3.0.3
│ │ │ └─┬ brace-expansion#1.1.6
│ │ │ ├── balanced-match#0.4.2
│ │ │ └── concat-map#0.0.1
│ │ └── path-is-absolute#1.0.0
│ └── promzard#0.3.0
├─┬ JSONStream#1.3.0
│ ├── jsonparse#1.2.0
│ └── through#2.3.8
├── lazy-property#1.0.0
├── lockfile#1.0.3
├── lodash._baseindexof#3.1.0
├─┬ lodash._baseuniq#4.6.0
│ ├── lodash._createset#4.0.3
│ └── lodash._root#3.0.1
├── lodash._bindcallback#3.0.1
├── lodash._cacheindexof#3.0.2
├── lodash._createcache#3.1.2
├── lodash._getnative#3.9.1
├── lodash.clonedeep#4.5.0
├── lodash.restparam#3.6.1
├── lodash.union#4.6.0
├── lodash.uniq#4.5.0
├── lodash.without#4.4.0
├─┬ mississippi#1.3.0
│ ├─┬ concat-stream#1.6.0
│ │ └── typedarray#0.0.6
│ ├─┬ duplexify#3.5.0
│ │ ├─┬ end-of-stream#1.0.0
│ │ │ └── once#1.3.3
│ │ └── stream-shift#1.0.0
│ ├─┬ end-of-stream#1.1.0
│ │ └── once#1.3.3
│ ├── flush-write-stream#1.0.2
│ ├── from2#2.3.0
│ ├─┬ parallel-transform#1.1.0
│ │ └── cyclist#0.2.2
│ ├── pump#1.0.2
│ ├── pumpify#1.3.5
│ ├─┬ stream-each#1.2.0
│ │ └── stream-shift#1.0.0
│ └─┬ through2#2.0.3
│ └── xtend#4.0.1
├─┬ mkdirp#0.5.1
│ └── minimist#0.0.8
├─┬ node-gyp#3.5.0
│ ├─┬ minimatch#3.0.3
│ │ └─┬ brace-expansion#1.1.6
│ │ ├── balanced-match#0.4.2
│ │ └── concat-map#0.0.1
│ └── nopt#3.0.6
├─┬ nopt#4.0.1
│ └─┬ osenv#0.1.4
│ ├── os-homedir#1.0.2
│ └── os-tmpdir#1.0.2
├── normalize-git-url#3.0.2
├─┬ normalize-package-data#2.3.5
│ └─┬ is-builtin-module#1.0.0
│ └── builtin-modules#1.1.1
├── npm-cache-filename#1.0.2
├── npm-install-checks#3.0.0
├── npm-package-arg#4.2.0
├─┬ npm-registry-client#7.4.5
│ └─┬ concat-stream#1.5.2
│ ├─┬ 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
├── npm-user-validate#0.1.5
├─┬ npmlog#4.0.2
│ ├─┬ are-we-there-yet#1.1.2
│ │ └── delegates#1.0.0
│ ├── console-control-strings#1.1.0
│ ├─┬ gauge#2.7.2
│ │ ├── object-assign#4.1.0
│ │ ├── signal-exit#3.0.2
│ │ ├─┬ string-width#1.0.2
│ │ │ ├── code-point-at#1.1.0
│ │ │ └─┬ is-fullwidth-code-point#1.0.0
│ │ │ └── number-is-nan#1.0.1
│ │ ├── supports-color#0.2.0
│ │ └── wide-align#1.1.0
│ └── set-blocking#2.0.0
├── once#1.4.0
├── opener#1.4.2
├─┬ osenv#0.1.4
│ ├── os-homedir#1.0.2
│ └── os-tmpdir#1.0.2
├── path-is-inside#1.0.2
├─┬ read#1.0.7
│ └── mute-stream#0.0.5
├── read-cmd-shim#1.0.1
├─┬ read-installed#4.0.3
│ └── util-extend#1.0.3
├─┬ read-package-json#2.0.4
│ ├─┬ glob#6.0.4
│ │ ├─┬ minimatch#3.0.3
│ │ │ └─┬ brace-expansion#1.1.6
│ │ │ ├── balanced-match#0.4.2
│ │ │ └── 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
├─┬ readable-stream#2.2.2
│ ├── 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
├── realize-package-specifier#3.0.3
├─┬ request#2.79.0
│ ├── aws-sign2#0.6.0
│ ├── aws4#1.5.0
│ ├── 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#2.1.2
│ │ └── asynckit#0.4.0
│ ├─┬ 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.15.0
│ │ │ ├── generate-function#2.0.0
│ │ │ ├─┬ generate-object-property#1.2.0
│ │ │ │ └── is-property#1.0.2
│ │ │ ├── jsonpointer#4.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.3.1
│ │ │ ├── extsprintf#1.0.2
│ │ │ ├── json-schema#0.2.3
│ │ │ └── verror#1.3.6
│ │ └─┬ sshpk#1.10.1
│ │ ├── asn1#0.2.3
│ │ ├── assert-plus#1.0.0
│ │ ├── bcrypt-pbkdf#1.0.0
│ │ ├── dashdash#1.14.1
│ │ ├── ecc-jsbn#0.1.1
│ │ ├── getpass#0.1.6
│ │ ├── 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.13
│ │ └── mime-db#1.25.0
│ ├── oauth-sign#0.8.2
│ ├── qs#6.3.0
│ ├── stringstream#0.0.5
│ ├─┬ tough-cookie#2.3.2
│ │ └── punycode#1.4.1
│ └── tunnel-agent#0.4.3
├── retry#0.10.1
├── rimraf#2.5.4
├── semver#5.3.0
├── sha#2.0.1
├── slide#1.1.6
├── sorted-object#2.0.1
├─┬ sorted-union-stream#2.1.3
│ ├─┬ from2#1.3.0
│ │ └─┬ readable-stream#1.1.14
│ │ ├── core-util-is#1.0.2
│ │ ├── isarray#0.0.1
│ │ └── string_decoder#0.10.31
│ └── stream-iterate#1.1.1
├── strip-ansi#3.0.1
├─┬ tar#2.2.1
│ └── block-stream#0.0.8
├── text-table#0.2.0
├── uid-number#0.0.6
├── umask#1.1.0
├─┬ unique-filename#1.1.0
│ └── unique-slug#2.0.0
├── unpipe#1.0.0
├── uuid#3.0.1
├─┬ validate-npm-package-license#3.0.1
│ ├─┬ 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
│ └── builtins#0.0.7
├─┬ which#1.2.12
│ └── isexe#1.1.2
├── wrappy#1.0.2
└── write-file-atomic#1.3.1
I then attempted to run node . and received the following error
MacBook-Pro:marketing-notifications-node-master $USER$ node .
module.js:471
throw err;
^
Error: Cannot find module 'mongodb/node_modules/bson'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/$USER/Desktop/marketing-notifications-node-master/node_modules/mongoose/lib/drivers/node-mongodb-native/objectid.js:8:52)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
EDIT
I tried deleting and reclining the original project file. I did npm install and received this output:
npm install
npm WARN deprecated jade#1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated node-uuid#1.4.7: use uuid module instead
npm WARN deprecated transformers#2.1.0: Deprecated, use jstransformer
npm WARN deprecated mongodb#1.4.12: Please upgrade to 2.2.19 or higher
npm WARN deprecated jade#0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated to-iso-string#0.0.2: to-iso-string has been deprecated, use #segment/to-iso-string instead.
npm WARN deprecated minimatch#0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
> kerberos#0.0.4 install /Users/$USER/Desktop/marketing-notifications-node-master/node_modules/kerberos
> (node-gyp rebuild 2> builderror.log) || (exit 0)
> bson#0.2.22 install /Users/$USER/Desktop/marketing-notifications-node-master/node_modules/bson
> (node-gyp rebuild 2> builderror.log) || (exit 0)
sms-notifications-node#1.0.0 /Users/$USER/Desktop/marketing-notifications-node-master
├─┬ body-parser#1.17.1
│ ├── bytes#2.4.0
│ ├── content-type#1.0.2
│ ├─┬ debug#2.6.1
│ │ └── ms#0.7.2
│ ├── depd#1.1.0
│ ├─┬ http-errors#1.6.1
│ │ └── inherits#2.0.3
│ ├── iconv-lite#0.4.15
│ ├─┬ on-finished#2.3.0
│ │ └── ee-first#1.1.1
│ ├── qs#6.4.0
│ ├─┬ raw-body#2.2.0
│ │ └── unpipe#1.0.0
│ └─┬ type-is#1.6.14
│ ├── media-typer#0.3.0
│ └─┬ mime-types#2.1.14
│ └── mime-db#1.26.0
├─┬ chai#2.3.0
│ ├── assertion-error#1.0.0
│ └─┬ deep-eql#0.1.3
│ └── type-detect#0.1.1
├── connect-flash#0.1.1
├─┬ express#4.15.2
│ ├─┬ accepts#1.3.3
│ │ └── negotiator#0.6.1
│ ├── array-flatten#1.1.1
│ ├── content-disposition#0.5.2
│ ├── cookie#0.3.1
│ ├── cookie-signature#1.0.6
│ ├── encodeurl#1.0.1
│ ├── escape-html#1.0.3
│ ├── etag#1.8.0
│ ├── finalhandler#1.0.0
│ ├── fresh#0.5.0
│ ├── merge-descriptors#1.0.1
│ ├── methods#1.1.2
│ ├── parseurl#1.3.1
│ ├── path-to-regexp#0.1.7
│ ├─┬ proxy-addr#1.1.3
│ │ ├── forwarded#0.1.0
│ │ └── ipaddr.js#1.2.0
│ ├── range-parser#1.2.0
│ ├─┬ send#0.15.1
│ │ ├── destroy#1.0.4
│ │ └── mime#1.3.4
│ ├── serve-static#1.12.1
│ ├── setprototypeof#1.0.3
│ ├── statuses#1.3.1
│ ├── utils-merge#1.0.0
│ └── vary#1.1.0
├─┬ express-session#1.15.1
│ ├── crc#3.4.4
│ ├── on-headers#1.0.1
│ └─┬ uid-safe#2.1.4
│ └── random-bytes#1.0.0
├─┬ http-auth#2.4.11
│ ├─┬ apache-crypt#1.1.2
│ │ └── unix-crypt-td-js#1.0.0
│ ├── apache-md5#1.0.6
│ └── node-uuid#1.4.7
├─┬ jade#1.11.0
│ ├── character-parser#1.2.1
│ ├─┬ clean-css#3.4.25
│ │ ├─┬ commander#2.8.1
│ │ │ └── graceful-readlink#1.0.1
│ │ └─┬ source-map#0.4.4
│ │ └── amdefine#1.0.1
│ ├── commander#2.6.0
│ ├─┬ constantinople#3.0.2
│ │ └── acorn#2.7.0
│ ├─┬ jstransformer#0.0.2
│ │ ├── is-promise#2.1.0
│ │ └─┬ promise#6.1.0
│ │ └── asap#1.0.0
│ ├─┬ mkdirp#0.5.1
│ │ └── minimist#0.0.8
│ ├─┬ transformers#2.1.0
│ │ ├─┬ css#1.0.8
│ │ │ ├── css-parse#1.0.4
│ │ │ └── css-stringify#1.0.5
│ │ ├─┬ promise#2.0.0
│ │ │ └── is-promise#1.0.1
│ │ └─┬ uglify-js#2.2.5
│ │ ├─┬ optimist#0.3.7
│ │ │ └── wordwrap#0.0.3
│ │ └── source-map#0.1.43
│ ├─┬ uglify-js#2.8.8
│ │ ├── source-map#0.5.6
│ │ ├── uglify-to-browserify#1.0.2
│ │ └─┬ yargs#3.10.0
│ │ ├── camelcase#1.2.1
│ │ ├─┬ cliui#2.1.0
│ │ │ ├─┬ center-align#0.1.3
│ │ │ │ ├─┬ align-text#0.1.4
│ │ │ │ │ ├─┬ kind-of#3.1.0
│ │ │ │ │ │ └── is-buffer#1.1.4
│ │ │ │ │ ├── longest#1.0.1
│ │ │ │ │ └── repeat-string#1.6.1
│ │ │ │ └── lazy-cache#1.0.4
│ │ │ ├── right-align#0.1.3
│ │ │ └── wordwrap#0.0.2
│ │ ├── decamelize#1.2.0
│ │ └── window-size#0.1.0
│ ├── void-elements#2.0.1
│ └─┬ with#4.0.3
│ ├── acorn#1.2.2
│ └── acorn-globals#1.0.9
├─┬ mocha#2.5.3
│ ├── commander#2.3.0
│ ├─┬ debug#2.2.0
│ │ └── ms#0.7.1
│ ├── diff#1.4.0
│ ├── escape-string-regexp#1.0.2
│ ├─┬ glob#3.2.11
│ │ └─┬ minimatch#0.3.0
│ │ ├── lru-cache#2.7.3
│ │ └── sigmund#1.0.1
│ ├── growl#1.9.2
│ ├─┬ jade#0.26.3
│ │ ├── commander#0.6.1
│ │ └── mkdirp#0.3.0
│ ├── supports-color#1.2.0
│ └── to-iso-string#0.0.2
├─┬ mongoose#3.9.7
│ ├── async#0.9.0
│ ├── hooks#0.3.2
│ ├── kareem#0.0.4
│ ├─┬ mongodb#1.4.12
│ │ ├─┬ bson#0.2.22
│ │ │ └── nan#1.8.4
│ │ ├── kerberos#0.0.4
│ │ └─┬ readable-stream#2.2.3
│ │ ├── 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
│ ├── mpath#0.1.1
│ ├── mpromise#0.5.4
│ ├─┬ mquery#1.0.0
│ │ └── debug#0.7.4
│ ├── ms#0.1.0
│ ├── muri#0.3.1
│ ├── regexp-clone#0.0.1
│ └── sliced#0.0.5
├─┬ morgan#1.8.1
│ └── basic-auth#1.1.0
└─┬ twilio#1.11.1
├── jwt-simple#0.1.0
├── q#0.9.7
├─┬ request#2.27.0
│ ├── aws-sign#0.3.0
│ ├── cookie-jar#0.3.0
│ ├── forever-agent#0.5.2
│ ├─┬ form-data#0.1.4
│ │ ├─┬ combined-stream#0.0.7
│ │ │ └── delayed-stream#0.0.5
│ │ └── mime#1.2.11
│ ├─┬ hawk#1.0.0
│ │ ├── boom#0.4.2
│ │ ├── cryptiles#0.2.2
│ │ ├── hoek#0.9.1
│ │ └── sntp#0.2.4
│ ├─┬ http-signature#0.10.1
│ │ ├── asn1#0.1.11
│ │ ├── assert-plus#0.1.5
│ │ └── ctype#0.5.3
│ ├── json-stringify-safe#5.0.1
│ ├── mime#1.2.11
│ ├── oauth-sign#0.3.0
│ ├── qs#0.6.6
│ └── tunnel-agent#0.3.0
├── scmp#0.0.3
└── underscore#1.8.3
I then tried to run node . and received the error:
MacBook-Pro:marketing-notifications-node-master $USER$ node .
module.js:471
throw err;
^
Error: Cannot find module 'mongodb/node_modules/bson'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/$USER/Desktop/marketing-notifications-node-master/node_modules/mongoose/lib/drivers/node-mongodb-native/objectid.js:8:52)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
EDIT
I've attempted to use npm install -g node-gyp then npm install mongoose#3.9.7
npm install -g node-gyp gave an output of :
MacBook-Pro:marketing-notifications-node-master $USER$ npm install -g node-gyp
/Users/$USER/.npm-packages/bin/node-gyp -> /Users/$USER/.npm-packages/lib/node_modules/node-gyp/bin/node-gyp.js
/Users/$USER/.npm-packages/lib
└── node-gyp#3.5.0
MacBook-Pro:marketing-notifications-node-master $USER$ npm install mongoose#3.9.7
npm WARN deprecated mongodb#1.4.12: Please upgrade to 2.2.19 or higher
sms-notifications-node#1.0.0 /Users/$USER/Desktop/marketing-notifications-node-master
└── mongoose#3.9.7
Twilio developer evangelist here.
I'm going to try to solve this outside of the comments as that is going to be difficult.
It looks as though you are having problems installing your dependencies. From this issue on npm's GitHub project the suggestion is to run:
npm cache clean
npm install -g npm#latest
Then try to run your full npm install again and if that works, run node .. Do all of this inside your project directory. If it doesn't work, please update your question with any error messages and I will try again!
Edit my output from npm install
$ npm install
npm WARN deprecated jade#1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated node-uuid#1.4.7: use uuid module instead
npm WARN deprecated transformers#2.1.0: Deprecated, use jstransformer
npm WARN deprecated mongodb#1.4.12: Please upgrade to 2.2.19 or higher
npm WARN deprecated jade#0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated to-iso-string#0.0.2: to-iso-string has been deprecated, use #segment/to-iso-string instead.
npm WARN deprecated minimatch#0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
> kerberos#0.0.4 install /Users/pnash/projects/node-projects/marketing-notifications-node/node_modules/kerberos
> (node-gyp rebuild 2> builderror.log) || (exit 0)
CXX(target) Release/obj.target/kerberos/lib/kerberos.o
> bson#0.2.22 install /Users/pnash/projects/node-projects/marketing-notifications-node/node_modules/bson
> (node-gyp rebuild 2> builderror.log) || (exit 0)
CXX(target) Release/obj.target/bson/ext/bson.o
sms-notifications-node#1.0.0 /Users/pnash/projects/node-projects/marketing-notifications-node
├─┬ body-parser#1.17.1
│ ├── bytes#2.4.0
│ ├── content-type#1.0.2
│ ├─┬ debug#2.6.1
│ │ └── ms#0.7.2
│ ├── depd#1.1.0
│ ├─┬ http-errors#1.6.1
│ │ └── inherits#2.0.3
│ ├── iconv-lite#0.4.15
│ ├─┬ on-finished#2.3.0
│ │ └── ee-first#1.1.1
│ ├── qs#6.4.0
│ ├─┬ raw-body#2.2.0
│ │ └── unpipe#1.0.0
│ └─┬ type-is#1.6.14
│ ├── media-typer#0.3.0
│ └─┬ mime-types#2.1.14
│ └── mime-db#1.26.0
├─┬ chai#2.3.0
│ ├── assertion-error#1.0.0
│ └─┬ deep-eql#0.1.3
│ └── type-detect#0.1.1
├── connect-flash#0.1.1
├─┬ express#4.15.2
│ ├─┬ accepts#1.3.3
│ │ └── negotiator#0.6.1
│ ├── array-flatten#1.1.1
│ ├── content-disposition#0.5.2
│ ├── cookie#0.3.1
│ ├── cookie-signature#1.0.6
│ ├── encodeurl#1.0.1
│ ├── escape-html#1.0.3
│ ├── etag#1.8.0
│ ├── finalhandler#1.0.0
│ ├── fresh#0.5.0
│ ├── merge-descriptors#1.0.1
│ ├── methods#1.1.2
│ ├── parseurl#1.3.1
│ ├── path-to-regexp#0.1.7
│ ├─┬ proxy-addr#1.1.3
│ │ ├── forwarded#0.1.0
│ │ └── ipaddr.js#1.2.0
│ ├── range-parser#1.2.0
│ ├─┬ send#0.15.1
│ │ ├── destroy#1.0.4
│ │ └── mime#1.3.4
│ ├── serve-static#1.12.1
│ ├── setprototypeof#1.0.3
│ ├── statuses#1.3.1
│ ├── utils-merge#1.0.0
│ └── vary#1.1.0
├─┬ express-session#1.15.1
│ ├── crc#3.4.4
│ ├── on-headers#1.0.1
│ └─┬ uid-safe#2.1.4
│ └── random-bytes#1.0.0
├─┬ http-auth#2.4.11
│ ├─┬ apache-crypt#1.1.2
│ │ └── unix-crypt-td-js#1.0.0
│ ├── apache-md5#1.0.6
│ └── node-uuid#1.4.7
├─┬ jade#1.11.0
│ ├── character-parser#1.2.1
│ ├─┬ clean-css#3.4.25
│ │ ├─┬ commander#2.8.1
│ │ │ └── graceful-readlink#1.0.1
│ │ └─┬ source-map#0.4.4
│ │ └── amdefine#1.0.1
│ ├── commander#2.6.0
│ ├─┬ constantinople#3.0.2
│ │ └── acorn#2.7.0
│ ├─┬ jstransformer#0.0.2
│ │ ├── is-promise#2.1.0
│ │ └─┬ promise#6.1.0
│ │ └── asap#1.0.0
│ ├─┬ mkdirp#0.5.1
│ │ └── minimist#0.0.8
│ ├─┬ transformers#2.1.0
│ │ ├─┬ css#1.0.8
│ │ │ ├── css-parse#1.0.4
│ │ │ └── css-stringify#1.0.5
│ │ ├─┬ promise#2.0.0
│ │ │ └── is-promise#1.0.1
│ │ └─┬ uglify-js#2.2.5
│ │ ├─┬ optimist#0.3.7
│ │ │ └── wordwrap#0.0.3
│ │ └── source-map#0.1.43
│ ├─┬ uglify-js#2.8.8
│ │ ├── source-map#0.5.6
│ │ ├── uglify-to-browserify#1.0.2
│ │ └─┬ yargs#3.10.0
│ │ ├── camelcase#1.2.1
│ │ ├─┬ cliui#2.1.0
│ │ │ ├─┬ center-align#0.1.3
│ │ │ │ ├─┬ align-text#0.1.4
│ │ │ │ │ ├─┬ kind-of#3.1.0
│ │ │ │ │ │ └── is-buffer#1.1.4
│ │ │ │ │ ├── longest#1.0.1
│ │ │ │ │ └── repeat-string#1.6.1
│ │ │ │ └── lazy-cache#1.0.4
│ │ │ ├── right-align#0.1.3
│ │ │ └── wordwrap#0.0.2
│ │ ├── decamelize#1.2.0
│ │ └── window-size#0.1.0
│ ├── void-elements#2.0.1
│ └─┬ with#4.0.3
│ ├── acorn#1.2.2
│ └── acorn-globals#1.0.9
├─┬ mocha#2.5.3
│ ├── commander#2.3.0
│ ├─┬ debug#2.2.0
│ │ └── ms#0.7.1
│ ├── diff#1.4.0
│ ├── escape-string-regexp#1.0.2
│ ├─┬ glob#3.2.11
│ │ └─┬ minimatch#0.3.0
│ │ ├── lru-cache#2.7.3
│ │ └── sigmund#1.0.1
│ ├── growl#1.9.2
│ ├─┬ jade#0.26.3
│ │ ├── commander#0.6.1
│ │ └── mkdirp#0.3.0
│ ├── supports-color#1.2.0
│ └── to-iso-string#0.0.2
├─┬ mongoose#3.9.7
│ ├── async#0.9.0
│ ├── hooks#0.3.2
│ ├── kareem#0.0.4
│ ├─┬ mongodb#1.4.12
│ │ ├─┬ bson#0.2.22
│ │ │ └── nan#1.8.4
│ │ ├── kerberos#0.0.4
│ │ └─┬ readable-stream#2.2.3
│ │ ├── 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
│ ├── mpath#0.1.1
│ ├── mpromise#0.5.4
│ ├─┬ mquery#1.0.0
│ │ └── debug#0.7.4
│ ├── ms#0.1.0
│ ├── muri#0.3.1
│ ├── regexp-clone#0.0.1
│ └── sliced#0.0.5
├─┬ morgan#1.8.1
│ └── basic-auth#1.1.0
└─┬ twilio#1.11.1
├── jwt-simple#0.1.0
├── q#0.9.7
├─┬ request#2.27.0
│ ├── aws-sign#0.3.0
│ ├── cookie-jar#0.3.0
│ ├── forever-agent#0.5.2
│ ├─┬ form-data#0.1.4
│ │ ├─┬ combined-stream#0.0.7
│ │ │ └── delayed-stream#0.0.5
│ │ └── mime#1.2.11
│ ├─┬ hawk#1.0.0
│ │ ├── boom#0.4.2
│ │ ├── cryptiles#0.2.2
│ │ ├── hoek#0.9.1
│ │ └── sntp#0.2.4
│ ├─┬ http-signature#0.10.1
│ │ ├── asn1#0.1.11
│ │ ├── assert-plus#0.1.5
│ │ └── ctype#0.5.3
│ ├── json-stringify-safe#5.0.1
│ ├── mime#1.2.11
│ ├── oauth-sign#0.3.0
│ ├── qs#0.6.6
│ └── tunnel-agent#0.3.0
├── scmp#0.0.3
└── underscore#1.8.3
I have a Meteor app deployed with Passenger + Nginx (as follow) on AWS EC2 instance under Ubuntu 16.04.1 LTS (GNU/Linux 4.4.0-62-generic x86_64)
The problem is that it takes around 100% CPU usage permanently.
I've tried to switch to more powerful instance and even deployed a blank app instead of mine - still the same.
Any ideas where to dig?
Thanks.
P.S.
var/log/nginx/error.log:
2017/02/08 08:04:20 [info] 18232#18232: Using 32768KiB of shared memory for nchan in /etc/nginx/nginx.conf:71
[ 2017-02-08 08:04:20.4123 18239/7fe378ac0780 age/Wat/WatchdogMain.cpp:1281 ]: Starting Passenger watchdog...
[ 2017-02-08 08:04:20.4281 18242/7f7adea7b780 age/Cor/CoreMain.cpp:1070 ]: Starting Passenger core...
[ 2017-02-08 08:04:20.4282 18242/7f7adea7b780 age/Cor/CoreMain.cpp:245 ]: Passenger core running in multi-application mode.
[ 2017-02-08 08:04:20.4309 18242/7f7adea7b780 age/Cor/CoreMain.cpp:820 ]: Passenger core online, PID 18242
[ 2017-02-08 08:04:20.4511 18248/7fdc44af6780 age/Ust/UstRouterMain.cpp:529 ]: Starting Passenger UstRouter...
[ 2017-02-08 08:04:20.4517 18248/7fdc44af6780 age/Ust/UstRouterMain.cpp:342 ]: Passenger UstRouter online, PID 18248
[ 2017-02-08 08:04:22.7236 18242/7f7ade98c700 age/Cor/SecurityUpdateChecker.h:464 ]: Security update check: no update found (next check in 24 hours)
npm install output:
> fibers#1.0.15 install /var/www/play/bundle/programs/server/node_modules/fibers
> node build.js || nodejs build.js
`linux-x64-48` exists; testing
Binary is fine; exiting
> meteor-dev-bundle#0.0.0 install /var/www/play/bundle/programs/server
> node npm-rebuild.js
{
"meteor-dev-bundle": "0.0.0",
"npm": "3.10.10",
"ares": "1.10.1-DEV",
"http_parser": "2.7.0",
"icu": "56.1",
"modules": "48",
"node": "6.9.5",
"openssl": "1.0.2k",
"uv": "1.9.1",
"v8": "5.1.281.89",
"zlib": "1.2.8"
}
meteor-dev-bundle#0.0.0 /var/www/play/bundle/programs/server
├── amdefine#1.0.1
├── asap#2.0.5
├── fibers#1.0.15
├── meteor-promise#0.8.0
├─┬ node-gyp#3.4.0
│ ├─┬ fstream#1.0.10
│ │ └── inherits#2.0.3
│ ├─┬ glob#7.1.1
│ │ ├── fs.realpath#1.0.0
│ │ ├─┬ inflight#1.0.6
│ │ │ └── wrappy#1.0.2
│ │ ├── once#1.4.0
│ │ └── path-is-absolute#1.0.1
│ ├── graceful-fs#4.1.11
│ ├─┬ minimatch#3.0.3
│ │ └─┬ brace-expansion#1.1.6
│ │ ├── balanced-match#0.4.2
│ │ └── concat-map#0.0.1
│ ├─┬ mkdirp#0.5.1
│ │ └── minimist#0.0.8
│ ├─┬ nopt#3.0.6
│ │ └── abbrev#1.0.9
│ ├─┬ npmlog#3.1.2
│ │ ├─┬ are-we-there-yet#1.1.2
│ │ │ ├── delegates#1.0.0
│ │ │ └── readable-stream#2.2.2
│ │ ├── console-control-strings#1.1.0
│ │ ├─┬ gauge#2.6.0
│ │ │ ├── aproba#1.1.0
│ │ │ ├── has-color#0.1.7
│ │ │ ├── has-unicode#2.0.1
│ │ │ ├── object-assign#4.1.1
│ │ │ ├── signal-exit#3.0.2
│ │ │ ├─┬ string-width#1.0.2
│ │ │ │ ├── code-point-at#1.1.0
│ │ │ │ └─┬ is-fullwidth-code-point#1.0.0
│ │ │ │ └── number-is-nan#1.0.1
│ │ │ ├─┬ strip-ansi#3.0.1
│ │ │ │ └── ansi-regex#2.1.1
│ │ │ └── wide-align#1.1.0
│ │ └── set-blocking#2.0.0
│ ├─┬ osenv#0.1.4
│ │ ├── os-homedir#1.0.2
│ │ └── os-tmpdir#1.0.2
│ ├─┬ path-array#1.0.1
│ │ └─┬ array-index#1.0.0
│ │ ├─┬ debug#2.6.0
│ │ │ └── ms#0.7.2
│ │ └─┬ es6-symbol#3.1.0
│ │ ├── d#0.1.1
│ │ └─┬ es5-ext#0.10.12
│ │ └── es6-iterator#2.0.0
│ ├─┬ request#2.79.0
│ │ ├── aws-sign2#0.6.0
│ │ ├── aws4#1.6.0
│ │ ├── 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#2.1.2
│ │ │ └── asynckit#0.4.0
│ │ ├─┬ 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.15.0
│ │ │ │ ├── generate-function#2.0.0
│ │ │ │ ├─┬ generate-object-property#1.2.0
│ │ │ │ │ └── is-property#1.0.2
│ │ │ │ ├── jsonpointer#4.0.1
│ │ │ │ └── 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.3.1
│ │ │ │ ├── extsprintf#1.0.2
│ │ │ │ ├── json-schema#0.2.3
│ │ │ │ └── verror#1.3.6
│ │ │ └─┬ sshpk#1.10.2
│ │ │ ├── asn1#0.2.3
│ │ │ ├── assert-plus#1.0.0
│ │ │ ├── bcrypt-pbkdf#1.0.1
│ │ │ ├─┬ dashdash#1.14.1
│ │ │ │ └── assert-plus#1.0.0
│ │ │ ├── ecc-jsbn#0.1.1
│ │ │ ├─┬ getpass#0.1.6
│ │ │ │ └── assert-plus#1.0.0
│ │ │ ├── jodid25519#1.0.2
│ │ │ ├── jsbn#0.1.0
│ │ │ └── tweetnacl#0.14.5
│ │ ├── is-typedarray#1.0.0
│ │ ├── isstream#0.1.2
│ │ ├── json-stringify-safe#5.0.1
│ │ ├─┬ mime-types#2.1.14
│ │ │ └── mime-db#1.26.0
│ │ ├── oauth-sign#0.8.2
│ │ ├── qs#6.3.0
│ │ ├── stringstream#0.0.5
│ │ ├─┬ tough-cookie#2.3.2
│ │ │ └── punycode#1.4.1
│ │ ├── tunnel-agent#0.4.3
│ │ └── uuid#3.0.1
│ ├── rimraf#2.5.4
│ ├─┬ tar#2.2.1
│ │ └── block-stream#0.0.9
│ └─┬ which#1.2.12
│ └── isexe#1.1.2
├─┬ node-pre-gyp#0.6.29
│ ├─┬ rc#1.1.6
│ │ ├── deep-extend#0.4.1
│ │ ├── ini#1.3.4
│ │ ├── minimist#1.2.0
│ │ └── strip-json-comments#1.0.4
│ ├── semver#5.2.0
│ └─┬ tar-pack#3.1.4
│ ├─┬ debug#2.2.0
│ │ └── ms#0.7.1
│ ├── fstream-ignore#1.0.5
│ ├── once#1.3.3
│ ├─┬ readable-stream#2.1.5
│ │ ├── 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
│ └── uid-number#0.0.6
├── promise#7.1.1
├── semver#4.1.0
├── source-map#0.1.32
├── source-map-support#0.3.2
└── underscore#1.5.2
npm WARN meteor-dev-bundle#0.0.0 No description
npm WARN meteor-dev-bundle#0.0.0 No repository field.
npm WARN meteor-dev-bundle#0.0.0 No license field.
According to the Meteor deployment guide, you have to use specifically Node 4.6.2.
Depending on the version of Meteor you are using, you should install
the proper version of node using the appropriate installation process
for your platform.
Node 4.6.2 for Meteor 1.4.x
Node 0.10.43 for Meteor 1.3.x and earlier
If you use a mismatched version of Node when deploying your
application, you will encounter errors!
Passenger docs also suggest a 4.x version of node.
It worked for me with node js v4.8.4. Now CPU rarely goes above 10%.
Fixed it by reinstalling everything from the scratch. Still don't know what happend.
It's happening again, approximately once per day:
Wonder if there is some alternative for Passenger + Nginx?
Node version as mentioned in above answers strictly matters. You can try installing nginx+ pm2. It works like charm. To know more about pm2 , I already answered here.
How to run built of Meteor's sample app via Node
I am trying to install topojson with node.js and I am getting a frustrating error. I reinstalled the latest version of node.js (4.4.5) and running the standard install method. It seems like everything installs correctly. Then I try to do something with topojson and it is clear that not everything is installed correctly--illegal operation on directory. So it seems like it is installed but that I am having permission problems perhaps? Can anyone help with this?
C:\>npm install -g topojson
C:\Users\Seth\AppData\Roaming\npm\topojson-geojson -> C:\Users\Seth\AppData\Roaming\npm\node_modules\topojson\bin\topojson-geojson
C:\Users\Seth\AppData\Roaming\npm\topojson -> C:\Users\Seth\AppData\Roaming\npm\node_modules\topojson\bin\topojson
C:\Users\Seth\AppData\Roaming\npm\topojson-merge -> C:\Users\Seth\AppData\Roaming\npm\node_modules\topojson\bin\topojson-merge
C:\Users\Seth\AppData\Roaming\npm\topojson-group -> C:\Users\Seth\AppData\Roaming\npm\node_modules\topojson\bin\topojson-group
C:\Users\Seth\AppData\Roaming\npm\topojson-svg -> C:\Users\Seth\AppData\Roaming\npm\node_modules\topojson\bin\topojson-svg
C:\Users\Seth\AppData\Roaming\npm
└─┬ topojson#1.6.26
├── d3#3.5.17
├─┬ d3-geo-projection#0.2.16
│ └─┬ brfs#1.4.3
│ ├─┬ quote-stream#1.0.2
│ │ ├── buffer-equal#0.0.1
│ │ └── minimist#1.2.0
│ ├── resolve#1.1.7
│ ├─┬ static-module#1.3.1
│ │ ├─┬ concat-stream#1.4.10
│ │ │ ├── inherits#2.0.1
│ │ │ ├─┬ readable-stream#1.1.14
│ │ │ │ └── isarray#0.0.1
│ │ │ └── typedarray#0.0.6
│ │ ├─┬ duplexer2#0.0.2
│ │ │ └─┬ readable-stream#1.1.14
│ │ │ └── isarray#0.0.1
│ │ ├─┬ escodegen#1.3.3
│ │ │ ├── esprima#1.1.1
│ │ │ ├── estraverse#1.5.1
│ │ │ ├── esutils#1.0.0
│ │ │ └─┬ source-map#0.1.43
│ │ │ └── amdefine#1.0.0
│ │ ├─┬ falafel#1.2.0
│ │ │ ├── acorn#1.2.2
│ │ │ ├── foreach#2.0.5
│ │ │ ├── isarray#0.0.1
│ │ │ └── object-keys#1.0.9
│ │ ├─┬ has#1.0.1
│ │ │ └── function-bind#1.1.0
│ │ ├── object-inspect#0.4.0
│ │ ├─┬ quote-stream#0.0.0
│ │ │ └── minimist#0.0.8
│ │ ├─┬ readable-stream#1.0.34
│ │ │ ├── core-util-is#1.0.2
│ │ │ ├── isarray#0.0.1
│ │ │ └── string_decoder#0.10.31
│ │ ├── shallow-copy#0.0.1
│ │ ├─┬ static-eval#0.2.4
│ │ │ └─┬ escodegen#0.0.28
│ │ │ ├── esprima#1.0.4
│ │ │ └── estraverse#1.3.2
│ │ └─┬ through2#0.4.2
│ │ └─┬ xtend#2.1.2
│ │ └── object-keys#0.4.0
│ └─┬ through2#2.0.1
│ ├─┬ readable-stream#2.0.6
│ │ ├── isarray#1.0.0
│ │ ├── process-nextick-args#1.0.7
│ │ └── util-deprecate#1.0.2
│ └── xtend#4.0.1
├── d3-queue#2.0.3
├─┬ optimist#0.3.7
│ └── wordwrap#0.0.3
├── rw#1.3.2
└─┬ shapefile#0.3.1
├── d3-queue#1.2.3
└── iconv-lite#0.2.11
C:\>topojson -v
C:\Users\Seth\AppData\Roaming\npm\node_modules\topojson\bin\topojson:259
if (error) throw error;
^
Error: EISDIR: illegal operation on a directory, read
at Error (native)
at Object.fs.readSync (fs.js:603:19)
at module.exports (C:\Users\Seth\AppData\Roaming\npm\node_modules\topojson\node_modules\rw\lib\rw\read-file-sync.js:14:28)
at Object.readFileSync (C:\Users\Seth\AppData\Roaming\npm\node_modules\topojson\node_modules\rw\lib\rw\dash.js:7:19)
at inputJson (C:\Users\Seth\AppData\Roaming\npm\node_modules\topojson\bin\topojson:245:30)
at start (C:\Users\Seth\AppData\Roaming\npm\node_modules\topojson\node_modules\d3-queue\build\d3-queue.js:68:13)
at poke (C:\Users\Seth\AppData\Roaming\npm\node_modules\topojson\node_modules\d3-queue\build\d3-queue.js:56:26)
at Queue.queue.defer (C:\Users\Seth\AppData\Roaming\npm\node_modules\topojson\node_modules\d3-queue\build\d3-queue.js:34:7)
at C:\Users\Seth\AppData\Roaming\npm\node_modules\topojson\bin\topojson:196:5
at Array.forEach (native)