英文:
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://<username>:"<pasword>"@<proxyserver>:<port>
cd myapp
npm install --proxy http://<username>:"<pasword>"@<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! 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 "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!
答案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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论