ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* Re: [sisyphus] new npm трабл
  @ 2013-03-07  8:03 ` Дмитрий Кулик
  2013-03-07  8:17 ` Дмитрий Кулик
  1 sibling, 0 replies; 3+ messages in thread
From: Дмитрий Кулик @ 2013-03-07  8:03 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

2013/3/7 Michael Bykov <m.bykov@gmail.com>:
> Салют,
>
> кажется, в Сизифе проблема с новым npm 1.2.2
>
> npm v 1.1.66 - модули лежат в /usr/local/lib/node_modules,
>
> и npm ls coffee-script -g
> /usr/local/lib
> ├── coffee-script@1.4.0
>
> v 1.2.2 - ставит глобальные модули в l /usr/lib/node_modules/, а не в
> local/lib,
>
> и  npm ls cofee-script -g
> /usr/lib
> └── (empty)
>
> и странные ошибки поэтому
>
> Cannot read property 'prototype' of undefined
>     at create (/usr/lib/node_modules/jquery/lib/node-jquery.js:10:26)

Повешайте баг. В исполнители lnkvisitor@

-- 
Dmitry Kulik
ALTLinux Team
e-mail: lnkvisitor.ts[at]gmail.com
jabber: lnkvisitor.ts[at]gmail.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sisyphus] new npm трабл
    2013-03-07  8:03 ` [sisyphus] new npm трабл Дмитрий Кулик
@ 2013-03-07  8:17 ` Дмитрий Кулик
    1 sibling, 1 reply; 3+ messages in thread
From: Дмитрий Кулик @ 2013-03-07  8:17 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

2013/3/7 Michael Bykov <m.bykov@gmail.com>:
> Салют,
>
> кажется, в Сизифе проблема с новым npm 1.2.2
>
> npm v 1.1.66 - модули лежат в /usr/local/lib/node_modules,
>
> и npm ls coffee-script -g
> /usr/local/lib
> ├── coffee-script@1.4.0
>
> v 1.2.2 - ставит глобальные модули в l /usr/lib/node_modules/, а не в
> local/lib,

Это правильное поведение.

>
> и  npm ls cofee-script -g
> /usr/lib
> └── (empty)
>
> и странные ошибки поэтому
>
> Cannot read property 'prototype' of undefined
>     at create (/usr/lib/node_modules/jquery/lib/node-jquery.js:10:26)

Начиная с 0.6.19-alt3 (npm 1.1.24) и выше был изменен путь к модулям +
добавлена переменная окружения. Иначе node мог не находить глобальные
модули.

Пермещение /usr/local/lib/node_modules в /usr/lib/node_modules поможет.

Но неясно остается почему npm v 1.1.66 ставил не туда, куда надо. node
какой версии стоит. Случайно npm вручную не обновляли?

-- 
Dmitry Kulik
ALTLinux Team
e-mail: lnkvisitor.ts[at]gmail.com
jabber: lnkvisitor.ts[at]gmail.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sisyphus] new npm трабл
  @ 2013-03-07  9:28     ` Дмитрий Кулик
  0 siblings, 0 replies; 3+ messages in thread
From: Дмитрий Кулик @ 2013-03-07  9:28 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

2013/3/7 Michael Bykov <m.bykov@gmail.com>:
>
> 7 марта 2013 г., 12:17 пользователь Дмитрий Кулик <lnkvisitor.ts@gmail.com>
> написал:
>>
>> 2013/3/7 Michael Bykov <m.bykov@gmail.com>:
>> > Салют,
>> >
>> > кажется, в Сизифе проблема с новым npm 1.2.2
>> >
>> > npm v 1.1.66 - модули лежат в /usr/local/lib/node_modules,
>> >
>> > и npm ls coffee-script -g
>> > /usr/local/lib
>> > ├── coffee-script@1.4.0
>> >
>> > v 1.2.2 - ставит глобальные модули в l /usr/lib/node_modules/, а не в
>> > local/lib,
>>
>> Это правильное поведение.
>>
>> >
>> > и  npm ls cofee-script -g
>> > /usr/lib
>> > └── (empty)
>> >
>> > и странные ошибки поэтому
>> >
>> > Cannot read property 'prototype' of undefined
>> >     at create (/usr/lib/node_modules/jquery/lib/node-jquery.js:10:26)
>>
>> Начиная с 0.6.19-alt3 (npm 1.1.24) и выше был изменен путь к модулям +
>> добавлена переменная окружения. Иначе node мог не находить глобальные
>> модули.
>>
>> Пермещение /usr/local/lib/node_modules в /usr/lib/node_modules поможет.
>>
>> Но неясно остается почему npm v 1.1.66 ставил не туда, куда надо. node
>> какой версии стоит. Случайно npm вручную не обновляли?
>>
>
>
>
> Я добавлял симлинк /usr/local/lib/node_modules на реальные модули, но не
> помогло.
>
> А как проверить эту переменную окружения?

export | grep NODE_PATH

> Сейчас поставил node вручную. А на ноуте по-прежнему 1.1.66, тут все ок.
>
> И, наверное, ессли уж выделить npm в отдельный пакет, то все равно его лучше
> автоматом ставить, как зависимость? А то не сразу и догадаешься, что он
> теперь отдельно.
>
>
> М.

npm тянет gcc-с++ node-devel. Чтоб по умолчанию это все не тянуть npm
выделен в подпакет.

С зависимостями уже столкнулись
http://lists.altlinux.org/pipermail/sisyphus/2013-March/359963.html
mysql-libmysql например требует libmysqlclient-devel
и так многие.

Самый простой вариант обновить npm и вручную переместить модули.
-- 
Dmitry Kulik
ALTLinux Team
e-mail: lnkvisitor.ts[at]gmail.com
jabber: lnkvisitor.ts[at]gmail.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-03-07  9:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-07  8:03 ` [sisyphus] new npm трабл Дмитрий Кулик
2013-03-07  8:17 ` Дмитрий Кулик
2013-03-07  9:28     ` Дмитрий Кулик

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git