mapbox / geojson-merge

Merge multiple GeoJSON files into one FeatureCollection.
ISC License
233 stars 33 forks source link

npm install --save @mapbox/geojson-merge failes #19

Closed tjmac closed 7 years ago

tjmac commented 7 years ago

trying to install geojson-merge

npm install --save @mapbox/geojson-merge

npm WARN checkPermissions Missing write access to /Users/trevormcdonald/node_modules/@mapbox
trevormcdonald@1.0.0 /Users/trevormcdonald
└── @mapbox/geojson-merge@1.0.2 

npm WARN trevormcdonald@1.0.0 No description
npm WARN trevormcdonald@1.0.0 No repository field.
npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/Cellar/node/7.6.0/bin/node" "/usr/local/bin/npm" "install" "--save" "@mapbox/geojson-merge"
npm ERR! node v7.6.0
npm ERR! npm  v4.1.2
npm ERR! path /Users/trevormcdonald/node_modules/@mapbox
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access

npm ERR! Error: EACCES: permission denied, access '/Users/trevormcdonald/node_modules/@mapbox'
npm ERR!  { Error: EACCES: permission denied, access '/Users/trevormcdonald/node_modules/@mapbox'
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/Users/trevormcdonald/node_modules/@mapbox' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/trevormcdonald/npm-debug.log
tjmac commented 7 years ago

additionally with npm list

npm ERR! extraneous: @mapbox/geojson-merge@1.0.2 /Users/trevormcdonald/node_modules/@mapbox/geojson-merge

tmcw commented 7 years ago

You might want to try fixing permissions - it looks like previously npm was used with sudo and so now the ~/node_modules/@mapbox directory is owned by a user who isn't you.

tjmac commented 7 years ago

@tmcw thank you! All good now!