LINUX.ORG.RU

Не ставится casperjs через npm

 , ,


0

1

Не ставится casperjs через npm, вылазит такое:

npm ERR! Linux 3.13.0-51-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "casperjs"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! code ETARGET

npm ERR! notarget No compatible version found: casperjs@'*'
npm ERR! notarget Valid install targets:
npm ERR! notarget ["1.1.0-beta2","1.1.0-beta3"]
npm ERR! notarget 
npm ERR! notarget This is most likely not a problem with npm itself.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/slava/npm-debug.log


В чем проблема?

Содержимое /home/slava/npm-debug.log:
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', '-g', 'casperjs' ]
2 info using npm@2.11.3
3 info using node@v0.12.7
4 verbose install initial load of /usr/lib/package.json
5 verbose readDependencies loading dependencies from /usr/lib/package.json
6 silly cache add args [ 'casperjs', null ]
7 verbose cache add spec casperjs
8 silly cache add parsed spec { raw: 'casperjs',
8 silly cache add   scope: null,
8 silly cache add   name: 'casperjs',
8 silly cache add   rawSpec: '',
8 silly cache add   spec: '*',
8 silly cache add   type: 'range' }
9 silly addNamed casperjs@*
10 verbose addNamed "*" is a valid semver range for casperjs
11 silly addNameRange { name: 'casperjs', range: '*', hasData: false }
12 silly mapToRegistry name casperjs
13 silly mapToRegistry using default registry
14 silly mapToRegistry registry https://registry.npmjs.org/
15 silly mapToRegistry uri https://registry.npmjs.org/casperjs
16 verbose addNameRange registry:https://registry.npmjs.org/casperjs not in flight; fetching
17 verbose request uri https://registry.npmjs.org/casperjs
18 verbose request no auth needed
19 info attempt registry request try #1 at 23:07:50
20 verbose request id ce6d5ee5e7dc3db9
21 verbose etag "BLW3MQ9H4KPD376R4ZUGFY2TP"
22 http request GET https://registry.npmjs.org/casperjs
23 http 304 https://registry.npmjs.org/casperjs
24 silly get cb [ 304,
24 silly get   { date: 'Thu, 13 Aug 2015 20:07:51 GMT',
24 silly get     via: '1.1 varnish',
24 silly get     'cache-control': 'max-age=60',
24 silly get     etag: '"BLW3MQ9H4KPD376R4ZUGFY2TP"',
24 silly get     age: '0',
24 silly get     connection: 'keep-alive',
24 silly get     'x-served-by': 'cache-jfk1033-JFK',
24 silly get     'x-cache': 'HIT',
24 silly get     'x-cache-hits': '1',
24 silly get     'x-timer': 'S1439496471.450684,VS0,VE21',
24 silly get     vary: 'Accept' } ]
25 verbose etag https://registry.npmjs.org/casperjs from cache
26 verbose get saving casperjs to /home/slava/.npm/registry.npmjs.org/casperjs/.cache.json
27 silly addNameRange number 2 { name: 'casperjs', range: '*', hasData: true }
28 silly addNameRange versions [ 'casperjs', [ '1.1.0-beta2', '1.1.0-beta3' ] ]
29 verbose stack Error: No compatible version found: casperjs@'*'
29 verbose stack Valid install targets:
29 verbose stack ["1.1.0-beta2","1.1.0-beta3"]
29 verbose stack
29 verbose stack     at installTargetsError (/usr/lib/node_modules/npm/lib/cache/add-named.js:274:12)
29 verbose stack     at next (/usr/lib/node_modules/npm/lib/cache/add-named.js:253:17)
29 verbose stack     at setData (/usr/lib/node_modules/npm/lib/cache/add-named.js:230:5)
29 verbose stack     at RES (/usr/lib/node_modules/npm/node_modules/inflight/inflight.js:23:14)
29 verbose stack     at f (/usr/lib/node_modules/npm/node_modules/once/once.js:17:25)
29 verbose stack     at fixName (/usr/lib/node_modules/npm/lib/cache/add-named.js:29:5)
29 verbose stack     at saved (/usr/lib/node_modules/npm/lib/cache/caching-client.js:173:7)
29 verbose stack     at FSReqWrap.oncomplete (fs.js:95:15)
30 verbose cwd /home/slava
31 error Linux 3.13.0-51-generic
32 error argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "casperjs"
33 error node v0.12.7
34 error npm  v2.11.3
35 error code ETARGET
36 error notarget No compatible version found: casperjs@'*'
36 error notarget Valid install targets:
36 error notarget ["1.1.0-beta2","1.1.0-beta3"]
36 error notarget
36 error notarget This is most likely not a problem with npm itself.
36 error notarget In most cases you or one of your dependencies are requesting
36 error notarget a package version that doesn't exist.
37 verbose exit [ 1, true ]

★★★★

npm i casperjs@1.1.0-beta3
Deleted ()

У них только пререлизные версии (что немного тупо), думаю трабл именно из-за этого.

invokercd ★★★★ ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.