[sisyphus] Проблемы при глобальной установке purescript через npm

Eugine Kosenko eugine.kosenko на gmail.com
Вс Сен 8 13:55:53 MSK 2019


Взялся поиграть с Purescript. Там рекомендуют устанавливать его через npm (
http://www.purescript.org/). Но при попытке установки получаю проблемы
доступа к файловой системе:

$ sudo npm install -g purescript
/usr/bin/purs -> /usr/lib/node_modules/purescript/purs.bin

> purescript на 0.13.3 postinstall /usr/lib/node_modules/purescript
> install-purescript --purs-ver=0.13.3

Error: EACCES: permission denied, mkdtemp
'/usr/lib/node_modules/purescript/node-purescript-q2FGAi'
(node:1720311) UnhandledPromiseRejectionWarning: Error: EACCES: permission
denied, open
'/root/.cache/purescript-npm-installer-nodejs/index-v5/90/cc/afa51ff139146ebe0e8b2b0a26d78342d4cbeb1020f4d3f80c109c4b5b7d'
(node:1720311) UnhandledPromiseRejectionWarning: Unhandled promise
rejection. This error originated either by throwing inside of an async
function without a catch block, or by rejecting a promise which was not
handled with .catch(). (rejection id: 1)
(node:1720311) [DEP0018] DeprecationWarning: Unhandled promise rejections
are deprecated. In the future, promise rejections that are not handled will
terminate the Node.js process with a non-zero exit code.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! purescript на 0.13.3 postinstall: `install-purescript
--purs-ver=0.13.3`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the purescript на 0.13.3 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely
additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-09-08T10_49_53_005Z-debug.log

От root журнал такой же. Особенно удивила "ошибка доступа" для
суперпользователя. В то же время, рекомендуемые pulp и bower (npm install
-g pulp bower) устанавливаются без проблем.

Пока что обошел проблему локальной установкой (npm install purescript),
которая не вызывает ошибок. Но хотелось бы разобраться, в чем проблема
глобальной установки.
----------- следующая часть -----------
Вложение в формате HTML было удалено...
URL: <http://lists.altlinux.org/pipermail/sisyphus/attachments/20190908/9bdfc4cb/attachment-0001.html>


Подробная информация о списке рассылки Sisyphus