Closed bhousel closed 4 years ago
same issue, change node version to lts version could be successful
Can't get spritezero installed either and I think I need help.
# ronald at iMac27.local in ~ [21:35:33]
→ npm install @mapbox/spritezero
npm ERR! Darwin 16.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "@mapbox/spritezero"
npm ERR! node v7.8.0
npm ERR! npm v4.2.0
npm ERR! Invalid name: "@mapbox/spritezero"
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /Users/ronald/.npm/_logs/2017-04-10T19_35_48_221Z-debug.log
After reading this issue, tried downgrading to v6.10.2 but it throws the same error.
This is the log it tells me to share:
→ cat /Users/ronald/.npm/_logs/2017-04-10T19_35_48_221Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli '@mapbox/spritezero' ]
2 info using npm@4.2.0
3 info using node@v7.8.0
4 verbose config Skipping project config: /Users/ronald/.npmrc. (matches userconfig)
5 silly loadCurrentTree Starting
6 silly install loadCurrentTree
7 silly install readLocalPackageData
8 silly fetchPackageMetaData @mapbox/spritezero
9 silly fetchNamedPackageData @mapbox/spritezero
10 silly mapToRegistry name @mapbox/spritezero
11 silly mapToRegistry scope (from package name) @mapbox
12 verbose mapToRegistry no registry URL found in name for scope @mapbox
13 silly mapToRegistry using default registry
14 silly mapToRegistry registry https://registry.npmjs.org/
15 silly mapToRegistry data Result {
15 silly mapToRegistry raw: '@mapbox/spritezero',
15 silly mapToRegistry scope: '@mapbox',
15 silly mapToRegistry escapedName: '@mapbox%2fspritezero',
15 silly mapToRegistry name: '@mapbox/spritezero',
15 silly mapToRegistry rawSpec: '',
15 silly mapToRegistry spec: 'latest',
15 silly mapToRegistry type: 'tag' }
16 silly mapToRegistry uri https://registry.npmjs.org/@mapbox%2fspritezero
17 verbose request uri https://registry.npmjs.org/@mapbox%2fspritezero
18 verbose request no auth needed
19 info attempt registry request try #1 at 9:35:47 PM
20 verbose request id 0a2852e89645bdb3
21 verbose etag W/"58eb582f-4a69"
22 verbose lastModified Mon, 10 Apr 2017 10:02:23 GMT
23 http request GET https://registry.npmjs.org/@mapbox%2fspritezero
24 http 304 https://registry.npmjs.org/@mapbox%2fspritezero
25 verbose headers { date: 'Mon, 10 Apr 2017 19:35:47 GMT',
25 verbose headers via: '1.1 varnish',
25 verbose headers 'cache-control': 'max-age=0',
25 verbose headers etag: 'W/"58eb582f-4a69"',
25 verbose headers age: '0',
25 verbose headers connection: 'keep-alive',
25 verbose headers 'x-served-by': 'cache-ams4130-AMS',
25 verbose headers 'x-cache': 'MISS',
25 verbose headers 'x-cache-hits': '0',
25 verbose headers 'x-timer': 'S1491852947.628564,VS0,VE599',
25 verbose headers vary: 'Accept-Encoding' }
26 silly get cb [ 304,
26 silly get { date: 'Mon, 10 Apr 2017 19:35:47 GMT',
26 silly get via: '1.1 varnish',
26 silly get 'cache-control': 'max-age=0',
26 silly get etag: 'W/"58eb582f-4a69"',
26 silly get age: '0',
26 silly get connection: 'keep-alive',
26 silly get 'x-served-by': 'cache-ams4130-AMS',
26 silly get 'x-cache': 'MISS',
26 silly get 'x-cache-hits': '0',
26 silly get 'x-timer': 'S1491852947.628564,VS0,VE599',
26 silly get vary: 'Accept-Encoding' } ]
27 verbose etag https://registry.npmjs.org/@mapbox%2fspritezero from cache
28 verbose get saving @mapbox/spritezero to /Users/ronald/.npm/registry.npmjs.org/_40mapbox_252fspritezero/.cache.json
29 verbose correctMkdir /Users/ronald/.npm correctMkdir not in flight; initializing
30 silly install normalizeTree
31 silly loadCurrentTree Finishing
32 silly loadIdealTree Starting
33 silly install loadIdealTree
34 silly cloneCurrentTree Starting
35 silly install cloneCurrentTreeToIdealTree
36 silly cloneCurrentTree Finishing
37 silly loadShrinkwrap Starting
38 silly install loadShrinkwrap
39 silly loadShrinkwrap Finishing
40 silly loadAllDepsIntoIdealTree Starting
41 silly install loadAllDepsIntoIdealTree
42 silly resolveWithNewModule @mapbox/spritezero@4.0.1 checking installable status
43 silly cache add args [ '@mapbox/spritezero', null ]
44 verbose cache add spec @mapbox/spritezero
45 silly cache add parsed spec Result {
45 silly cache add raw: '@mapbox/spritezero',
45 silly cache add scope: '@mapbox',
45 silly cache add escapedName: '@mapbox%2fspritezero',
45 silly cache add name: '@mapbox/spritezero',
45 silly cache add rawSpec: '',
45 silly cache add spec: 'latest',
45 silly cache add type: 'tag' }
46 silly addNamed @mapbox/spritezero@latest
47 verbose addNamed "latest" is being treated as a dist-tag for @mapbox/spritezero
48 info addNameTag [ '@mapbox/spritezero', 'latest' ]
49 silly mapToRegistry name @mapbox/spritezero
50 silly mapToRegistry scope (from package name) @mapbox
51 verbose mapToRegistry no registry URL found in name for scope @mapbox
52 silly mapToRegistry using default registry
53 silly mapToRegistry registry https://registry.npmjs.org/
54 silly mapToRegistry data Result {
54 silly mapToRegistry raw: '@mapbox/spritezero',
54 silly mapToRegistry scope: '@mapbox',
54 silly mapToRegistry escapedName: '@mapbox%2fspritezero',
54 silly mapToRegistry name: '@mapbox/spritezero',
54 silly mapToRegistry rawSpec: '',
54 silly mapToRegistry spec: 'latest',
54 silly mapToRegistry type: 'tag' }
55 silly mapToRegistry uri https://registry.npmjs.org/@mapbox%2fspritezero
56 verbose addNameTag registry:https://registry.npmjs.org/@mapbox%2fspritezero not in flight; fetching
57 verbose get https://registry.npmjs.org/@mapbox%2fspritezero not expired, no request
58 silly addNameTag next cb for @mapbox/spritezero with tag latest
59 silly addNamed @mapbox/spritezero@4.0.1
60 verbose addNamed "4.0.1" is a plain semver version for @mapbox/spritezero
61 silly rollbackFailedOptional Starting
62 silly rollbackFailedOptional Finishing
63 silly runTopLevelLifecycles Finishing
64 silly install printInstalled
65 verbose stack Error: Invalid name: "@mapbox/spritezero"
65 verbose stack at ensureValidName (/usr/local/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/fixer.js:281:15)
65 verbose stack at Object.fixNameField (/usr/local/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/fixer.js:196:5)
65 verbose stack at /usr/local/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/normalize.js:29:38
65 verbose stack at Array.forEach (native)
65 verbose stack at normalize (/usr/local/lib/node_modules/npm/node_modules/read-package-json/node_modules/normalize-package-data/lib/normalize.js:28:15)
65 verbose stack at final (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:349:5)
65 verbose stack at then (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:124:5)
65 verbose stack at ReadFileContext.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:189:20)
65 verbose stack at ReadFileContext.callback (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:78:16)
65 verbose stack at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:359:13)
66 verbose cwd /Users/ronald
67 error Darwin 16.6.0
68 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "@mapbox/spritezero"
69 error node v7.8.0
70 error npm v4.2.0
71 error Invalid name: "@mapbox/spritezero"
72 error If you need help, you may report this error at:
72 error <https://github.com/npm/npm/issues>
73 verbose exit [ 1, true ]
Tried with different nodejs versions, but no success.
@bhousel maybe any update on this?
@bhousel maybe any update on this?
Sorry @pathmapper - I haven't been involved much in spritezero lately. FWIW, I would not expect Node 7 to be supported, as it is not an LTS version.
Same problem. This is because of mapnik depedency!
mapnik@4.2.0 install: node-pre-gyp install --fallback-to-build
Looks like a stale issue since current Node LTS versions are 8, 10 and 12.
It looks like clean installs do not work on Node 7. There is no prebuilt mapnik binary, and the compile-from-source step fails for some reason..