<div dir="ltr">Взялся поиграть с Purescript. Там рекомендуют устанавливать его через npm (<a href="http://www.purescript.org/">http://www.purescript.org/</a>). Но при попытке установки получаю проблемы доступа к файловой системе:<div><br></div><div>$ sudo npm install -g purescript<br>/usr/bin/purs -&gt; /usr/lib/node_modules/purescript/purs.bin<br><br>&gt; purescript@0.13.3 postinstall /usr/lib/node_modules/purescript<br>&gt; install-purescript --purs-ver=0.13.3<br><br>Error: EACCES: permission denied, mkdtemp &#39;/usr/lib/node_modules/purescript/node-purescript-q2FGAi&#39;<br>(node:1720311) UnhandledPromiseRejectionWarning: Error: EACCES: permission denied, open &#39;/root/.cache/purescript-npm-installer-nodejs/index-v5/90/cc/afa51ff139146ebe0e8b2b0a26d78342d4cbeb1020f4d3f80c109c4b5b7d&#39;<br>(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)<br>(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.<br>npm ERR! code ELIFECYCLE<br>npm ERR! errno 1<br>npm ERR! purescript@0.13.3 postinstall: `install-purescript --purs-ver=0.13.3`<br>npm ERR! Exit status 1<br>npm ERR! <br>npm ERR! Failed at the purescript@0.13.3 postinstall script.<br>npm ERR! This is probably not a problem with npm. There is likely additional logging output above.<br><br>npm ERR! A complete log of this run can be found in:<br>npm ERR!     /root/.npm/_logs/2019-09-08T10_49_53_005Z-debug.log<br></div><div><br></div><div>От root журнал такой же. Особенно удивила &quot;ошибка доступа&quot; для суперпользователя. В то же время, рекомендуемые pulp и bower (<span style="background-color:rgb(246,242,235);color:rgb(0,0,0);font-family:Menlo,Monaco,Consolas,&quot;Courier New&quot;,monospace;font-size:14.4px">npm install -g pulp bower) устанавливаются без проблем.</span></div><div><span style="background-color:rgb(246,242,235);color:rgb(0,0,0);font-family:Menlo,Monaco,Consolas,&quot;Courier New&quot;,monospace;font-size:14.4px"><br></span></div><div><span style="background-color:rgb(246,242,235);color:rgb(0,0,0);font-family:Menlo,Monaco,Consolas,&quot;Courier New&quot;,monospace;font-size:14.4px">Пока что обошел проблему локальной установкой (npm install purescript), которая не вызывает ошибок. Но хотелось бы разобраться, в чем проблема глобальной установки.</span></div></div>