我无法在我的公司电脑上安装和运行基本的Svelte演示。

huangapple go评论46阅读模式
英文:

I cannot install and run the basic Svelte demo on my company computer

问题

I am trying to install the basic Svelte demo project on my company laptop and it fails. This is most likely related to the increased security and proxy we are using. On my private PC, everything worked like a charm in seconds, but on the company laptop I've been struggling for days running around in circles.

The steps I am taking are:

cd myapp
npm install --proxy http://<username>:"<password>"@<proxyserver>:<port>

Already at this stage I get multiple warnings and errors starting with:

npm WARN cleanup Failed to remove some directories [

but with many more cleanup warnings, and then multiple errors, starting with:

npm ERR! path c:\Users\manioko\source\repos\myapp\node_modules\esbuild
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node install.js
npm ERR! node:internal/errors:867

I have tried several things, including setting:

npm config set registry "http://registry.npmjs.org/"

But none of these fixes seem to work for me. Any ideas on what could be wrong here? I really cannot even get started with this one...

I would happily attach the log file if there was a way to do it. Let me know if you want me to just post it as code in a comment or something.

Thanks!

英文:

I am trying to install the basic Svelte demo project on my company laptop and it fails. This is most likely related to the increased security and proxy we are using. On my private PC, everything worked like a charm in seconds, but on the company laptop I've been struggling for days running around in circles.

The steps I am taking are:

npm create svelte@latest myapp --proxy http://&lt;username&gt;:&quot;&lt;pasword&gt;&quot;@&lt;proxyserver&gt;:&lt;port&gt;
cd myapp
npm install --proxy http://&lt;username&gt;:&quot;&lt;pasword&gt;&quot;@&lt;proxyserver&gt;:&lt;port&gt;

Already at this stage I get multiple warnings and errors starting with:

npm WARN cleanup Failed to remove some directories [

but with many more cleanup warnings, and then multiple errors, starting with:

npm ERR! code 1
npm ERR! path c:\Users\manioko\source\repos\myapp\node_modules\esbuild
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node install.js
npm ERR! node:internal/errors:867

I have tried several things, including setting:

npm config set -ssl false
npm config set registry &quot;http://registry.npmjs.org/&quot;

But none of these fixes seem to work for me. Any ideas on what could be wrong here? I really cannot even get started with this one...

I would happily attach the log file, if there was a way to do it. Let me know if you want me to just post it as code in a comment or something.

Thanks!

答案1

得分: 0

公司的安全限制最终证明是阻止文件运行的原因。

我通过获取一个独立的虚拟机来解决了这个问题。

英文:

In the end, it proved to be a company security restriction that blocked files from running.

I resolved it by getting a separate Virtual Machine for the development of this tool.

huangapple
  • 本文由 发表于 2023年5月11日 00:13:36
  • 转载请务必保留本文链接:https://go.coder-hub.com/76220613.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定