mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

mapbox-gl-shaders - 404 error on npm install

Open benjamindulau opened this issue 10 years ago • 4 comments

Hi,

I'm getting a 404 error when trying to install mapbox-gl with npm.

$ npm install --save-dev mapbox-gl
npm http 404 https://registry.npmjs.org/mapbox-gl-shaders
npm ERR! TypeError: Object.keys called on non-object
npm ERR!     at Function.keys (native)
npm ERR!     at installTargetsError (/usr/lib/node_modules/npm/lib/cache.js:708:24)
npm ERR!     at /usr/lib/node_modules/npm/lib/cache.js:638:10
npm ERR!     at saved (/usr/lib/node_modules/npm-registry-client/lib/get.js:148:7)
npm ERR!     at /usr/lib/node_modules/graceful-fs/polyfills.js:133:7
npm ERR!     at Object.oncomplete (fs.js:108:15)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

Maybe this is a momentarily error..

Thanks.

benjamindulau avatar Jun 16 '16 07:06 benjamindulau

I just did a fresh install using the command you specify and was unable to reproduce the error

$ npm install --save-dev mapbox-gl
npm WARN deprecated [email protected]: This project has been renamed to mapbox-gl-supported. Install using mapbox-gl-supported instead.
npm WARN deprecated [email protected]: 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.
npm WARN peerDependencies The peer dependency browserify@>= 5 included from minifyify will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
[email protected] node_modules/mapbox-gl
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

lucaswoj avatar Jun 16 '16 17:06 lucaswoj

If the problem persists, please re-open this issue and provide some more platform information.

lucaswoj avatar Jun 16 '16 17:06 lucaswoj

lucaswoj this not working any one have sol -- npm install --save-dev mapbox-gl npm WARN deprecated [email protected]: This module is now under the @mapbox namespace: install @mapbox/geojson-area instead npm ERR! path /home/esense-9/.npm/_cacache/index-v5/be/66 npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall mkdir npm ERR! Error: EACCES: permission denied, mkdir '/home/esense-9/.npm/_cacache/index-v5/be/66' npm ERR! { Error: EACCES: permission denied, mkdir '/home/esense-9/.npm/_cacache/index-v5/be/66' npm ERR! cause: npm ERR! { Error: EACCES: permission denied, mkdir '/home/esense-9/.npm/_cacache/index-v5/be/66' npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'mkdir', npm ERR! path: '/home/esense-9/.npm/_cacache/index-v5/be/66' }, npm ERR! isOperational: true, npm ERR! stack: 'Error: EACCES: permission denied, mkdir '/home/esense-9/.npm/_cacache/index-v5/be/66'', npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'mkdir', npm ERR! path: '/home/esense-9/.npm/_cacache/index-v5/be/66', npm ERR! parent: 'escodegen' } npm ERR! npm ERR! Please try running this command again as root/Administrator.

npm ERR! A complete log of this run can be found in: npm ERR! /home/esense-9/.npm/_logs/2017-10-18T06_42_24_923Z-debug.log

Suraj59 avatar Oct 18 '17 06:10 Suraj59

There is an article as solution for EACCESS issues How to Prevent Permissions Errors

sumitramteke avatar Mar 23 '18 07:03 sumitramteke