<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Cannot install colyseus.js client via npm]]></title><description><![CDATA[<p>I'm trying to install colyseus.js client via npm: <code>npm install --save colyseus.js</code>, but it returns an error:</p>
<pre><code class="language-bash">root@04196b313c5a:/usr/src/app/frontend# npm install --save colyseus.js

&gt; colyseus.js@0.10.8 postinstall /usr/src/app/frontend/node_modules/colyseus.js
&gt; npm run -s donate

glob error { [Error: EACCES: permission denied, scandir '/root/.npm/_logs']
  stack:
   'Error: EACCES: permission denied, scandir \'/root/.npm/_logs\'',
  errno: -13,
  code: 'EACCES',
  syscall: 'scandir',
  path: '/root/.npm/_logs' }

npm ERR! code ELIFECYCLE
npm ERR! errno 243
npm ERR! colyseus.js@0.10.8 postinstall: `npm run -s donate`
npm ERR! Exit status 243
npm ERR! 
npm ERR! Failed at the colyseus.js@0.10.8 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-08-19T14_07_34_459Z-debug.log
</code></pre>
<p>The module gets never installed and I cannot import it.</p>
<p>Am I doing anything wrong?</p>
]]></description><link>http://discuss.colyseus.io/topic/276/cannot-install-colyseus-js-client-via-npm</link><generator>RSS for Node</generator><lastBuildDate>Thu, 18 Jun 2026 08:31:02 GMT</lastBuildDate><atom:link href="http://discuss.colyseus.io/topic/276.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 19 Aug 2019 14:11:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cannot install colyseus.js client via npm on Invalid Date]]></title><description><![CDATA[<p>I'm trying to install colyseus.js client via npm: <code>npm install --save colyseus.js</code>, but it returns an error:</p>
<pre><code class="language-bash">root@04196b313c5a:/usr/src/app/frontend# npm install --save colyseus.js

&gt; colyseus.js@0.10.8 postinstall /usr/src/app/frontend/node_modules/colyseus.js
&gt; npm run -s donate

glob error { [Error: EACCES: permission denied, scandir '/root/.npm/_logs']
  stack:
   'Error: EACCES: permission denied, scandir \'/root/.npm/_logs\'',
  errno: -13,
  code: 'EACCES',
  syscall: 'scandir',
  path: '/root/.npm/_logs' }

npm ERR! code ELIFECYCLE
npm ERR! errno 243
npm ERR! colyseus.js@0.10.8 postinstall: `npm run -s donate`
npm ERR! Exit status 243
npm ERR! 
npm ERR! Failed at the colyseus.js@0.10.8 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-08-19T14_07_34_459Z-debug.log
</code></pre>
<p>The module gets never installed and I cannot import it.</p>
<p>Am I doing anything wrong?</p>
]]></description><link>http://discuss.colyseus.io/post/929</link><guid isPermaLink="true">http://discuss.colyseus.io/post/929</guid><dc:creator><![CDATA[rafaelbeckel]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Cannot install colyseus.js client via npm on Invalid Date]]></title><description><![CDATA[<p>Hi <a class="plugin-mentions-user plugin-mentions-a" href="http://discuss.colyseus.io/uid/494">@rafaelbeckel</a>, welcome!</p>
<p>That's the first time I see this, I've <a href="https://github.com/raineorshine/solgraph/issues/15#issuecomment-377783969" rel="nofollow">found this by googling the error</a>:</p>
<pre><code>sudo npm install --save colyseus.js --unsafe-perm=true --allow-root
</code></pre>
<p>Not sure why this happened to you though. Cheers!</p>
]]></description><link>http://discuss.colyseus.io/post/930</link><guid isPermaLink="true">http://discuss.colyseus.io/post/930</guid><dc:creator><![CDATA[endel]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Cannot install colyseus.js client via npm on Invalid Date]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="http://discuss.colyseus.io/uid/1">@endel</a> that command worked for me, thanks!</p>
<p>It happens when I run the command inside a node@10 docker container as root. In my machine, it works as expected without the extra <code>--</code> options.</p>
]]></description><link>http://discuss.colyseus.io/post/931</link><guid isPermaLink="true">http://discuss.colyseus.io/post/931</guid><dc:creator><![CDATA[rafaelbeckel]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Cannot install colyseus.js client via npm on Invalid Date]]></title><description><![CDATA[<p>hi <a class="plugin-mentions-user plugin-mentions-a" href="http://discuss.colyseus.io/uid/494">@rafaelbeckel</a> , <a class="plugin-mentions-user plugin-mentions-a" href="http://discuss.colyseus.io/uid/1">@endel</a> , you may like to take note: sometimes if you running docker or vagrant, npm won't be able to install apps even as root if you are trying to do it inside a shared folder, you better login into the VM (using docker exec bash container or vagrant ssh), get into a folder inside the container but outside the shared folder (everything will run perfectly without any permission issues if you have node and npm properly installed), and then just move the node_modules inside your shared folder.<br />
You could even create a small bash script to do something like:<br />
<code>$ cd ../ &amp;&amp; mkdir temp-folder &amp;&amp; cp ./your-shared-folder/package.json ./temp-folder &amp;&amp; cd temp-folder &amp;&amp; npm install &amp;&amp; cd ../ &amp;&amp; cp ./temp-folder/node_modules ./your-shared-folder &amp;&amp; rm -R ./temp-folder</code><br />
Looks awful as hell but it works :D</p>
]]></description><link>http://discuss.colyseus.io/post/932</link><guid isPermaLink="true">http://discuss.colyseus.io/post/932</guid><dc:creator><![CDATA[dpastorini]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>