marklogic-community / marklogic-samplestack

A sample implementation of the MarkLogic Reference Architecture
Apache License 2.0
82 stars 56 forks source link

osx: npm install: npm locks up ~/.npm directory #130

Closed popzip closed 9 years ago

popzip commented 10 years ago

I have git, node, bower, gulp installed.

I did the following: cd marklogic-samplestack/ git pull cd browser/ npm install

This is the response:

npm ERR! Error: EACCES, mkdir '/Users/kalderet/.npm/npmconf/0.0.24'
npm ERR!  { [Error: EACCES, mkdir '/Users/kalderet/.npm/npmconf/0.0.24']
npm ERR!   errno: 3,
npm ERR!   code: 'EACCES',
npm ERR!   path: '/Users/kalderet/.npm/npmconf/0.0.24',
npm ERR!   parent: 'phantomjs' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Darwin 13.3.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/kalderet/Samplestack/marklogic-samplestack/browser
npm ERR! node -v v0.10.30
npm ERR! npm -v 1.4.21
npm ERR! path /Users/kalderet/.npm/npmconf/0.0.24
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack Error: EACCES, mkdir '/Users/kalderet/.npm/npmconf/0.0.24'
\
> fsevents@0.2.0 install /Users/kalderet/Samplestack/marklogic-samplestack/browser/node_modules/dgeni-packages/node_modules/nunjucks/node_modules/chokidar/node_modules/fsevents
> node-gyp rebuild

  CXX(target) Release/obj.target/fse/fsevents.o
  SOLINK_MODULE(target) Release/fse.node
  SOLINK_MODULE(target) Release/fse.node: Finished
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/kalderet/Samplestack/marklogic-samplestack/browser/npm-debug.log
npm ERR! not ok code 0
laurelnaiad commented 10 years ago

Please post the output of running:

npm ls -g

popzip commented 10 years ago

/usr/local/lib ├─┬ bower@1.3.8 │ ├── abbrev@1.0.5 │ ├── archy@0.0.2 │ ├─┬ bower-config@0.5.2 │ │ ├── graceful-fs@2.0.3 │ │ ├─┬ optimist@0.6.1 │ │ │ ├── minimist@0.0.10 │ │ │ └── wordwrap@0.0.2 │ │ └── osenv@0.0.3 │ ├── bower-endpoint-parser@0.2.2 │ ├─┬ bower-json@0.4.0 │ │ ├── deep-extend@0.2.11 │ │ ├── graceful-fs@2.0.3 │ │ └── intersect@0.0.3 │ ├── bower-logger@0.2.2 │ ├─┬ bower-registry-client@0.2.1 │ │ ├── async@0.2.10 │ │ ├── graceful-fs@2.0.3 │ │ ├── lru-cache@2.3.1 │ │ ├── mkdirp@0.3.5 │ │ ├─┬ request@2.27.0 │ │ │ ├── aws-sign@0.3.0 │ │ │ ├── cookie-jar@0.3.0 │ │ │ ├── forever-agent@0.5.2 │ │ │ ├─┬ form-data@0.1.4 │ │ │ │ ├── async@0.9.0 │ │ │ │ └─┬ combined-stream@0.0.5 │ │ │ │ └── delayed-stream@0.0.5 │ │ │ ├─┬ hawk@1.0.0 │ │ │ │ ├── boom@0.4.2 │ │ │ │ ├── cryptiles@0.2.2 │ │ │ │ ├── hoek@0.9.1 │ │ │ │ └── sntp@0.2.4 │ │ │ ├─┬ http-signature@0.10.0 │ │ │ │ ├── asn1@0.1.11 │ │ │ │ ├── assert-plus@0.1.2 │ │ │ │ └── ctype@0.5.2 │ │ │ ├── json-stringify-safe@5.0.0 │ │ │ ├── mime@1.2.11 │ │ │ ├── node-uuid@1.4.1 │ │ │ ├── oauth-sign@0.3.0 │ │ │ ├── qs@0.6.6 │ │ │ └── tunnel-agent@0.3.0 │ │ └── request-replay@0.2.0 │ ├─┬ cardinal@0.4.4 │ │ ├── ansicolors@0.2.1 │ │ └─┬ redeyed@0.4.4 │ │ └── esprima@1.0.4 │ ├─┬ chalk@0.4.0 │ │ ├── ansi-styles@1.0.0 │ │ ├── has-color@0.1.7 │ │ └── strip-ansi@0.1.1 │ ├── chmodr@0.1.0 │ ├─┬ decompress-zip@0.0.8 │ │ ├─┬ binary@0.3.0 │ │ │ ├── buffers@0.1.1 │ │ │ └─┬ chainsaw@0.1.0 │ │ │ └── traverse@0.3.9 │ │ ├── mkpath@0.1.0 │ │ ├── nopt@2.2.1 │ │ ├─┬ readable-stream@1.1.13-1 │ │ │ ├── core-util-is@1.0.1 │ │ │ ├── inherits@2.0.1 │ │ │ ├── isarray@0.0.1 │ │ │ └── string_decoder@0.10.25-1 │ │ └─┬ touch@0.0.2 │ │ └── nopt@1.0.10 │ ├─┬ fstream@0.1.31 │ │ └── inherits@2.0.1 │ ├─┬ fstream-ignore@0.0.10 │ │ ├── inherits@2.0.1 │ │ └─┬ minimatch@0.3.0 │ │ └── sigmund@1.0.0 │ ├─┬ glob@4.0.5 │ │ ├── inherits@2.0.1 │ │ ├─┬ minimatch@1.0.0 │ │ │ └── sigmund@1.0.0 │ │ └── once@1.3.0 │ ├── graceful-fs@3.0.2 │ ├─┬ handlebars@1.3.0 │ │ ├─┬ optimist@0.3.7 │ │ │ └── wordwrap@0.0.2 │ │ └─┬ uglify-js@2.3.6 │ │ ├── async@0.2.10 │ │ └─┬ source-map@0.1.38 │ │ └── amdefine@0.1.0 │ ├─┬ inquirer@0.5.1 │ │ ├── async@0.8.0 │ │ ├─┬ cli-color@0.3.2 │ │ │ ├── d@0.1.1 │ │ │ ├─┬ es5-ext@0.10.4 │ │ │ │ ├── es6-iterator@0.1.1 │ │ │ │ └── es6-symbol@0.1.0 │ │ │ ├─┬ memoizee@0.3.6 │ │ │ │ ├── event-emitter@0.3.1 │ │ │ │ ├── lru-queue@0.1.0 │ │ │ │ └── next-tick@0.2.2 │ │ │ └─┬ timers-ext@0.1.0 │ │ │ └── next-tick@0.2.2 │ │ ├── lodash@2.4.1 │ │ ├── mute-stream@0.0.4 │ │ ├── readline2@0.1.0 │ │ └── through@2.3.4 │ ├─┬ insight@0.3.1 │ │ ├── async@0.2.10 │ │ ├─┬ configstore@0.2.3 │ │ │ ├── graceful-fs@2.0.3 │ │ │ ├─┬ js-yaml@3.0.2 │ │ │ │ ├─┬ argparse@0.1.15 │ │ │ │ │ ├── underscore@1.4.4 │ │ │ │ │ └── underscore.string@2.3.3 │ │ │ │ └── esprima@1.0.4 │ │ │ ├── mkdirp@0.3.5 │ │ │ ├── osenv@0.0.3 │ │ │ └── uuid@1.4.1 │ │ ├─┬ inquirer@0.4.1 │ │ │ ├─┬ cli-color@0.2.3 │ │ │ │ ├── es5-ext@0.9.2 │ │ │ │ └─┬ memoizee@0.2.6 │ │ │ │ ├── event-emitter@0.2.2 │ │ │ │ └── next-tick@0.1.0 │ │ │ ├── lodash@2.4.1 │ │ │ ├── mute-stream@0.0.4 │ │ │ ├── readline2@0.1.0 │ │ │ └── through@2.3.4 │ │ ├─┬ lodash.debounce@2.4.1 │ │ │ ├── lodash.isfunction@2.4.1 │ │ │ ├─┬ lodash.isobject@2.4.1 │ │ │ │ └── lodash._objecttypes@2.4.1 │ │ │ └─┬ lodash.now@2.4.1 │ │ │ └── lodash._isnative@2.4.1 │ │ ├── object-assign@0.1.2 │ │ └─┬ request@2.27.0 │ │ ├── aws-sign@0.3.0 │ │ ├── cookie-jar@0.3.0 │ │ ├── forever-agent@0.5.2 │ │ ├─┬ form-data@0.1.4 │ │ │ ├── async@0.9.0 │ │ │ └─┬ combined-stream@0.0.5 │ │ │ └── delayed-stream@0.0.5 │ │ ├─┬ hawk@1.0.0 │ │ │ ├── boom@0.4.2 │ │ │ ├── cryptiles@0.2.2 │ │ │ ├── hoek@0.9.1 │ │ │ └── sntp@0.2.4 │ │ ├─┬ http-signature@0.10.0 │ │ │ ├── asn1@0.1.11 │ │ │ ├── assert-plus@0.1.2 │ │ │ └── ctype@0.5.2 │ │ ├── json-stringify-safe@5.0.0 │ │ ├── mime@1.2.11 │ │ ├── node-uuid@1.4.1 │ │ ├── oauth-sign@0.3.0 │ │ ├── qs@0.6.6 │ │ └── tunnel-agent@0.3.0 │ ├── is-root@0.1.0 │ ├── junk@0.3.0 │ ├── lockfile@0.4.2 │ ├── lru-cache@2.5.0 │ ├─┬ mkdirp@0.5.0 │ │ └── minimist@0.0.8 │ ├── mout@0.9.1 │ ├── nopt@3.0.1 │ ├── opn@0.1.2 │ ├── osenv@0.1.0 │ ├─┬ p-throttler@0.0.1 │ │ └── q@0.9.7 │ ├─┬ promptly@0.2.0 │ │ └─┬ read@1.0.5 │ │ └── mute-stream@0.0.4 │ ├── q@1.0.1 │ ├─┬ request@2.36.0 │ │ ├── aws-sign2@0.5.0 │ │ ├── forever-agent@0.5.2 │ │ ├─┬ form-data@0.1.4 │ │ │ ├── async@0.9.0 │ │ │ └─┬ combined-stream@0.0.5 │ │ │ └── delayed-stream@0.0.5 │ │ ├─┬ hawk@1.0.0 │ │ │ ├── boom@0.4.2 │ │ │ ├── cryptiles@0.2.2 │ │ │ ├── hoek@0.9.1 │ │ │ └── sntp@0.2.4 │ │ ├─┬ http-signature@0.10.0 │ │ │ ├── asn1@0.1.11 │ │ │ ├── assert-plus@0.1.2 │ │ │ └── ctype@0.5.2 │ │ ├── json-stringify-safe@5.0.0 │ │ ├── mime@1.2.11 │ │ ├── node-uuid@1.4.1 │ │ ├── oauth-sign@0.3.0 │ │ ├── qs@0.6.6 │ │ ├─┬ tough-cookie@0.12.1 │ │ │ └── punycode@1.3.0 │ │ └── tunnel-agent@0.4.0 │ ├─┬ request-progress@0.3.1 │ │ └── throttleit@0.0.2 │ ├── retry@0.6.1 │ ├── rimraf@2.2.8 │ ├── semver@2.3.2 │ ├─┬ shell-quote@1.4.2 │ │ ├── array-filter@0.0.1 │ │ ├── array-map@0.0.0 │ │ ├── array-reduce@0.0.0 │ │ └── jsonify@0.0.0 │ ├── stringify-object@0.2.1 │ ├─┬ tar@0.1.20 │ │ ├── block-stream@0.0.7 │ │ └── inherits@2.0.1 │ ├── tmp@0.0.23 │ ├─┬ update-notifier@0.2.0 │ │ ├─┬ chalk@0.5.1 │ │ │ ├── ansi-styles@1.1.0 │ │ │ ├── escape-string-regexp@1.0.1 │ │ │ ├─┬ has-ansi@0.1.0 │ │ │ │ └── ansi-regex@0.2.1 │ │ │ ├─┬ strip-ansi@0.3.0 │ │ │ │ └── ansi-regex@0.2.1 │ │ │ └── supports-color@0.2.0 │ │ ├─┬ configstore@0.3.1 │ │ │ ├─┬ js-yaml@3.0.2 │ │ │ │ ├─┬ argparse@0.1.15 │ │ │ │ │ ├── underscore@1.4.4 │ │ │ │ │ └── underscore.string@2.3.3 │ │ │ │ └── esprima@1.0.4 │ │ │ ├── object-assign@0.3.1 │ │ │ └── uuid@1.4.1 │ │ ├─┬ latest-version@0.2.0 │ │ │ └─┬ package-json@0.2.0 │ │ │ ├─┬ got@0.3.0 │ │ │ │ └── object-assign@0.3.1 │ │ │ └─┬ registry-url@0.1.1 │ │ │ └─┬ npmconf@2.0.5 │ │ │ ├─┬ config-chain@1.1.8 │ │ │ │ └── proto-list@1.2.3 │ │ │ ├── inherits@2.0.1 │ │ │ ├── ini@1.2.1 │ │ │ ├── once@1.3.0 │ │ │ └── uid-number@0.0.5 │ │ ├── semver-diff@0.1.0 │ │ └─┬ string-length@0.1.2 │ │ └─┬ strip-ansi@0.2.2 │ │ └── ansi-regex@0.1.0 │ └── which@1.0.5 ├─┬ gulp@3.8.7 │ ├── archy@0.0.2 │ ├─┬ chalk@0.5.1 │ │ ├── ansi-styles@1.1.0 │ │ ├── escape-string-regexp@1.0.1 │ │ ├─┬ has-ansi@0.1.0 │ │ │ └── ansi-regex@0.2.1 │ │ ├─┬ strip-ansi@0.3.0 │ │ │ └── ansi-regex@0.2.1 │ │ └── supports-color@0.2.0 │ ├── deprecated@0.0.1 │ ├─┬ gulp-util@3.0.0 │ │ ├── dateformat@1.0.8-1.2.3 │ │ ├── lodash@2.4.1 │ │ ├── lodash._reinterpolate@2.4.1 │ │ ├─┬ lodash.template@2.4.1 │ │ │ ├── lodash._escapestringchar@2.4.1 │ │ │ ├─┬ lodash.defaults@2.4.1 │ │ │ │ └── lodash._objecttypes@2.4.1 │ │ │ ├─┬ lodash.escape@2.4.1 │ │ │ │ ├─┬ lodash._escapehtmlchar@2.4.1 │ │ │ │ │ └── lodash._htmlescapes@2.4.1 │ │ │ │ └─┬ lodash._reunescapedhtml@2.4.1 │ │ │ │ └── lodash._htmlescapes@2.4.1 │ │ │ ├─┬ lodash.keys@2.4.1 │ │ │ │ ├── lodash._isnative@2.4.1 │ │ │ │ ├─┬ lodash._shimkeys@2.4.1 │ │ │ │ │ └── lodash._objecttypes@2.4.1 │ │ │ │ └─┬ lodash.isobject@2.4.1 │ │ │ │ └── lodash._objecttypes@2.4.1 │ │ │ ├── lodash.templatesettings@2.4.1 │ │ │ └── lodash.values@2.4.1 │ │ ├─┬ multipipe@0.1.1 │ │ │ └─┬ duplexer2@0.0.2 │ │ │ └─┬ readable-stream@1.1.13-1 │ │ │ ├── core-util-is@1.0.1 │ │ │ ├── inherits@2.0.1 │ │ │ ├── isarray@0.0.1 │ │ │ └── string_decoder@0.10.25-1 │ │ ├─┬ through2@0.5.1 │ │ │ ├─┬ readable-stream@1.0.27-1 │ │ │ │ ├── core-util-is@1.0.1 │ │ │ │ ├── inherits@2.0.1 │ │ │ │ ├── isarray@0.0.1 │ │ │ │ └── string_decoder@0.10.25-1 │ │ │ └── xtend@3.0.0 │ │ └─┬ vinyl@0.2.3 │ │ └── clone-stats@0.0.1 │ ├── interpret@0.3.5 │ ├─┬ liftoff@0.12.0 │ │ ├── extend@1.2.1 │ │ ├─┬ findup-sync@0.1.3 │ │ │ ├─┬ glob@3.2.11 │ │ │ │ ├── inherits@2.0.1 │ │ │ │ └─┬ minimatch@0.3.0 │ │ │ │ ├── lru-cache@2.5.0 │ │ │ │ └── sigmund@1.0.0 │ │ │ └── lodash@2.4.1 │ │ ├── minimist@0.1.0 │ │ └── resolve@0.7.4 │ ├── minimist@0.2.0 │ ├─┬ orchestrator@0.3.7 │ │ ├─┬ end-of-stream@0.1.5 │ │ │ └── once@1.3.0 │ │ ├── sequencify@0.0.7 │ │ └── stream-consume@0.1.0 │ ├── pretty-hrtime@0.2.1 │ ├── semver@3.0.1 │ ├── tildify@0.2.0 │ └─┬ vinyl-fs@0.3.6 │ ├─┬ glob-stream@3.1.14 │ │ ├─┬ glob@4.0.5 │ │ │ ├── inherits@2.0.1 │ │ │ ├─┬ minimatch@1.0.0 │ │ │ │ ├── lru-cache@2.5.0 │ │ │ │ └── sigmund@1.0.0 │ │ │ └── once@1.3.0 │ │ ├─┬ glob2base@0.0.9 │ │ │ └─┬ lodash.findindex@2.4.1 │ │ │ └─┬ lodash.createcallback@2.4.1 │ │ │ ├─┬ lodash._basecreatecallback@2.4.1 │ │ │ │ ├─┬ lodash._setbinddata@2.4.1 │ │ │ │ │ ├── lodash._isnative@2.4.1 │ │ │ │ │ └── lodash.noop@2.4.1 │ │ │ │ ├─┬ lodash.bind@2.4.1 │ │ │ │ │ ├─┬ lodash._createwrapper@2.4.1 │ │ │ │ │ │ ├─┬ lodash._basebind@2.4.1 │ │ │ │ │ │ │ └─┬ lodash._basecreate@2.4.1 │ │ │ │ │ │ │ ├── lodash._isnative@2.4.1 │ │ │ │ │ │ │ └── lodash.noop@2.4.1 │ │ │ │ │ │ ├─┬ lodash._basecreatewrapper@2.4.1 │ │ │ │ │ │ │ └─┬ lodash._basecreate@2.4.1 │ │ │ │ │ │ │ ├── lodash._isnative@2.4.1 │ │ │ │ │ │ │ └── lodash.noop@2.4.1 │ │ │ │ │ │ └── lodash.isfunction@2.4.1 │ │ │ │ │ └── lodash._slice@2.4.1 │ │ │ │ ├── lodash.identity@2.4.1 │ │ │ │ └─┬ lodash.support@2.4.1 │ │ │ │ └── lodash._isnative@2.4.1 │ │ │ ├─┬ lodash._baseisequal@2.4.1 │ │ │ │ ├─┬ lodash._getarray@2.4.1 │ │ │ │ │ └── lodash._arraypool@2.4.1 │ │ │ │ ├── lodash._objecttypes@2.4.1 │ │ │ │ ├─┬ lodash._releasearray@2.4.1 │ │ │ │ │ ├── lodash._arraypool@2.4.1 │ │ │ │ │ └── lodash._maxpoolsize@2.4.1 │ │ │ │ ├── lodash.forin@2.4.1 │ │ │ │ └── lodash.isfunction@2.4.1 │ │ │ ├─┬ lodash.isobject@2.4.1 │ │ │ │ └── lodash._objecttypes@2.4.1 │ │ │ ├─┬ lodash.keys@2.4.1 │ │ │ │ ├── lodash._isnative@2.4.1 │ │ │ │ └─┬ lodash._shimkeys@2.4.1 │ │ │ │ └── lodash._objecttypes@2.4.1 │ │ │ └── lodash.property@2.4.1 │ │ ├─┬ minimatch@0.3.0 │ │ │ ├── lru-cache@2.5.0 │ │ │ └── sigmund@1.0.0 │ │ ├── ordered-read-streams@0.0.8 │ │ └── unique-stream@1.0.0 │ ├─┬ glob-watcher@0.0.6 │ │ └─┬ gaze@0.5.1 │ │ └─┬ globule@0.1.0 │ │ ├─┬ glob@3.1.21 │ │ │ ├── graceful-fs@1.2.3 │ │ │ └── inherits@1.0.0 │ │ ├── lodash@1.0.1 │ │ └─┬ minimatch@0.2.14 │ │ ├── lru-cache@2.5.0 │ │ └── sigmund@1.0.0 │ ├── graceful-fs@3.0.2 │ ├── lodash@2.4.1 │ ├─┬ mkdirp@0.5.0 │ │ └── minimist@0.0.8 │ ├─┬ strip-bom@0.3.1 │ │ ├── first-chunk-stream@0.1.0 │ │ └── is-utf8@0.2.0 │ ├─┬ through2@0.5.1 │ │ ├─┬ readable-stream@1.0.27-1 │ │ │ ├── core-util-is@1.0.1 │ │ │ ├── inherits@2.0.1 │ │ │ ├── isarray@0.0.1 │ │ │ └── string_decoder@0.10.25-1 │ │ └── xtend@3.0.0 │ └─┬ vinyl@0.3.2 │ └── clone-stats@0.0.1 └─┬ npm@1.4.21 ├── abbrev@1.0.5 ├── ansi@0.3.0 ├── ansicolors@0.3.2 ├── ansistyles@0.1.3 ├── archy@0.0.2 ├── block-stream@0.0.7 ├── char-spinner@1.0.1 ├── child-process-close@0.1.1 ├── chmodr@0.1.0 ├── chownr@0.0.1 ├── cmd-shim@1.1.1 ├─┬ columnify@1.1.0 │ ├─┬ strip-ansi@0.2.2 │ │ └── ansi-regex@0.1.0 │ └─┬ wcwidth.js@0.0.4 │ └── underscore@1.6.0 ├── editor@0.1.0 ├── fstream@0.1.28 ├─┬ fstream-npm@0.1.7 │ └── fstream-ignore@0.0.8 ├── github-url-from-git@1.1.1 ├── github-url-from-username-repo@0.2.0 ├── glob@4.0.3 ├── graceful-fs@3.0.2 ├── inflight@1.0.1 ├── inherits@2.0.1 ├── ini@1.2.1 ├─┬ init-package-json@0.1.0 │ └── promzard@0.2.2 ├── lockfile@0.4.2 ├── lru-cache@2.5.0 ├─┬ minimatch@0.3.0 │ └── sigmund@1.0.0 ├── mkdirp@0.3.5 ├── node-gyp@0.13.1 ├── nopt@3.0.1 ├── npm-cache-filename@1.0.1 ├── npm-install-checks@1.0.2 ├── npm-registry-client@2.0.3 ├── npm-user-validate@0.1.0 ├─┬ npmconf@1.1.4 │ └─┬ config-chain@1.1.8 │ └── proto-list@1.2.3 ├── npmlog@0.1.1 ├── once@1.3.0 ├── opener@1.3.0 ├── osenv@0.1.0 ├── path-is-inside@1.0.1 ├─┬ read@1.0.5 │ └── mute-stream@0.0.4 ├─┬ read-installed@2.0.5 │ └── util-extend@1.0.1 ├─┬ read-package-json@1.2.2 │ └── normalize-package-data@0.3.0 ├─┬ request@2.30.0 │ ├── aws-sign2@0.5.0 │ ├── forever-agent@0.5.0 │ ├─┬ form-data@0.1.2 │ │ ├── async@0.2.9 │ │ └─┬ combined-stream@0.0.4 │ │ └── delayed-stream@0.0.5 │ ├─┬ hawk@1.0.0 │ │ ├── boom@0.4.2 │ │ ├── cryptiles@0.2.2 │ │ ├── hoek@0.9.1 │ │ └── sntp@0.2.4 │ ├─┬ http-signature@0.10.0 │ │ ├── asn1@0.1.11 │ │ ├── assert-plus@0.1.2 │ │ └── ctype@0.5.2 │ ├── json-stringify-safe@5.0.0 │ ├── mime@1.2.11 │ ├── node-uuid@1.4.1 │ ├── oauth-sign@0.3.0 │ ├── qs@0.6.6 │ ├─┬ tough-cookie@0.9.15 │ │ └── punycode@1.2.3 │ └── tunnel-agent@0.3.0 ├── retry@0.6.0 ├── rimraf@2.2.8 ├── semver@2.3.0 ├─┬ sha@1.2.4 │ └─┬ readable-stream@1.0.27-1 │ ├── core-util-is@1.0.1 │ ├── isarray@0.0.1 │ └── string_decoder@0.10.25-1 ├── slide@1.1.5 ├── sorted-object@1.0.0 ├── tar@0.1.20 ├── text-table@0.2.0 ├── uid-number@0.0.5 └── which@1.0.5

laurelnaiad commented 10 years ago

@popzip, will you please pull develop again and retry? I took out docs generation which may help with your install issue.

popzip commented 10 years ago

npm ERR! Error: EACCES, mkdir '/Users/kalderet/.npm/npmconf/0.0.24' npm ERR! { [Error: EACCES, mkdir '/Users/kalderet/.npm/npmconf/0.0.24'] npm ERR! errno: 3, npm ERR! code: 'EACCES', npm ERR! path: '/Users/kalderet/.npm/npmconf/0.0.24', npm ERR! parent: 'phantomjs' } npm ERR! npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Darwin 13.3.0 npm ERR! command "node" "/usr/local/bin/npm" "install" npm ERR! cwd /Users/kalderet/Samplestack/marklogic-samplestack/browser npm ERR! node -v v0.10.30 npm ERR! npm -v 1.4.21 npm ERR! path /Users/kalderet/.npm/npmconf/0.0.24 npm ERR! code EACCES npm ERR! errno 3 npm ERR! stack Error: EACCES, mkdir '/Users/kalderet/.npm/npmconf/0.0.24' npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Users/kalderet/Samplestack/marklogic-samplestack/browser/npm-debug.log npm ERR! not ok code 0

popzip commented 10 years ago

should i do the npm ls -g again?

laurelnaiad commented 10 years ago

researching why @popzip and @jmakeig seem to need to sudo rm -rf ~/.npm before their npm installations are functional. I'm tempted to mark this external and document the workaround, but I'd like to understand it better first. Will report back.

laurelnaiad commented 10 years ago

Is it possible @popzip , @jmakeig that you ever installed npm or node administratively? I would like to take a peek at one of your machines when you have a moment. Can you reach out to me when you have a few minutes to webex?

jmakeig commented 10 years ago

My npm is definitely installed globally (/usr/local/bin/npm). Node too (/usr/local/bin/node). npm is owned by root and node by user 24561.

laurelnaiad commented 10 years ago

https://github.com/npm/npm/issues/3664 says

I was getting this until I added C:\Users\AppData\Roaming\npm-cache as an excluded file location to my antivirus.

I'm running windows 7.

for a very similar issue that was also affecting OSX users (this person is obviously on windows but the principle may apply.

I wonder if you were to do:

sudo rm -rf ~/.npm
mkdir ~/.npm
cd <marklogic-samplestack>/browser
rm -rf node_modules
npm install

what would happen?

Alternatively, we could consider overriding your cache location, but something makes me wonder whether just creating it yourself might help.

laurelnaiad commented 10 years ago

(Or just figuring out whether you have antivirus running and if so how to make it ignore the dir)

jmakeig commented 10 years ago

Yes, that's basically the process that I used successfully. I think my problem was that I might have had some components installed both locally and globally. (Would that confuse npm or bower?)

laurelnaiad commented 10 years ago

For npm, no it doesn't matter.

You can install globally and locally and local overrides global.

If you try to install locally with sudo you're up the creek, though. I don't think that's your problem.

Are you saying that once you manually created ~/.npm that you can npm install the browser at will? As in, you can rm -rf node_modules to wipe out the browser's whole set of dependencies and still do a clean, pleasant npm install on it?

FWIW, Bower doesn't use global components, AFAIK, or if it does I've never messed with it.

jmakeig commented 10 years ago

Once I did rm -rf ~/.npm your existing instructions worked fine. The only thing I've ever used sudo for is when install explicitly requires -g. Then it's usually after a permission denied error.

laurelnaiad commented 10 years ago

WIll you please try wiping out the browser/node_modules directory and rerunning the browser's npm install?

jmakeig commented 10 years ago

Works fine with ca7973a.

laurelnaiad commented 10 years ago

I will document manual creation of ~/.npm on macs as a workaround if the user gets EACCESS errors in that directory.

popzip commented 10 years ago

Stu - did you document this? If so we can close / push to EA3

laurelnaiad commented 10 years ago

I've added a note in the browser readme: 193c608

popzip commented 10 years ago

I'm not having the issue anymore, i think due to the workaround stu posted in the readme. Should be good now. I'll reassign to eA3 though and keep it on my plate so we can revisit whether there is any more substantial solution

popzip commented 9 years ago

has not recurred and is documented. appears to be a good solution.