Comments (9)
Yeah, the readme could mention that, agreed.
from template.
For what it's worth, I was having the same error and it turned out to be my employer's MITM SSL decryption cert. I was able to get around it by temporarily disabling ssl check with this:
npm config set strict-ssl false
Although now I am getting "! could not download https://github.com/sveltejs/template/archive/4b6ab60fe58c8404d674b58faa08659d832605cc.tar.gz" presumably because whatever is being used to download is also doing an certificate validation.
from template.
Cloning manually works, though.
from template.
Hi,
this is not an issue with svelte, nor this template, see here for further info and hints: Rich-Harris/degit#37
If nothing in there solves your issue, join the discussion there :)
And please close the issue here. Thanks.
from template.
That has nothing to do with the error I got.
I'm on Linux, not on mac.
Git is installed and I use it everyday.
I'll add these info on the first comment.
from template.
Oh, now I got what you meant.
Since it's an error on degit, I should discuss there. Ok.
But even so, the docs could be improved regarding this.
from template.
I'm getting this when trying to run npx degit sveltejs/template my-svelte-project
Microsoft Windows [Version 10.0.19042.1110]
(c) Microsoft Corporation. All rights reserved.
C:\Users\Justin\Documents>mkdir "svelte test"
C:\Users\Justin\Documents>cd "svelte test"
C:\Users\Justin\Documents\svelte test>npx degit sveltejs/template my-svelte-project
Need to install the following packages:
degit
Ok to proceed? (y) y
> cloned sveltejs/template#HEAD to my-svelte-project
C:\Users\Justin\Documents\svelte test>npx degit sveltejs/template my-svelte-project
! destination directory is not empty, aborting. Use --force to override
npm ERR! code 1
npm ERR! path C:\Users\Justin\Documents\svelte test
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c degit sveltejs/template my-svelte-project
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Justin\AppData\Local\npm-cache\_logs\2021-08-07T04_48_04_216Z-debug.log
C:\Users\Justin\Documents\svelte test>
from template.
0 verbose cli [
0 verbose cli 'C:\\Program Files\\nodejs\\node.exe',
0 verbose cli 'C:\\Users\\Justin\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
0 verbose cli 'exec',
0 verbose cli '--',
0 verbose cli 'degit',
0 verbose cli 'sveltejs/template',
0 verbose cli 'my-svelte-project'
0 verbose cli ]
1 info using npm@7.5.4
2 info using node@v14.15.5
3 timing config:load:defaults Completed in 2ms
4 timing config:load:file:C:\Users\Justin\AppData\Roaming\npm\node_modules\npm\npmrc Completed in 1ms
5 timing config:load:builtin Completed in 1ms
6 timing config:load:cli Completed in 2ms
7 timing config:load:env Completed in 0ms
8 timing config:load:project Completed in 1ms
9 timing config:load:file:C:\Users\Justin\.npmrc Completed in 0ms
10 timing config:load:user Completed in 0ms
11 timing config:load:file:C:\Users\Justin\AppData\Roaming\npm\etc\npmrc Completed in 1ms
12 timing config:load:global Completed in 1ms
13 timing config:load:cafile Completed in 0ms
14 timing config:load:validate Completed in 0ms
15 timing config:load:setUserAgent Completed in 0ms
16 timing config:load:setEnvs Completed in 0ms
17 timing config:load Completed in 8ms
18 verbose npm-session ef98f26660729f42
19 timing npm:load Completed in 18ms
20 http fetch GET 304 https://registry.npmjs.org/degit 299ms (from cache)
21 timing arborist:ctor Completed in 1ms
22 timing arborist:ctor Completed in 0ms
23 timing arborist:ctor Completed in 0ms
24 timing command:exec Completed in 656ms
25 verbose stack Error: command failed
25 verbose stack at ChildProcess.<anonymous> (C:\Users\Justin\AppData\Roaming\npm\node_modules\npm\node_modules\@npmcli\promise-spawn\index.js:64:27)
25 verbose stack at ChildProcess.emit (events.js:315:20)
25 verbose stack at maybeClose (internal/child_process.js:1048:16)
25 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
26 verbose pkgid Justin@1.0.0
27 verbose cwd C:\Users\Justin\Documents\svelte test
28 verbose Windows_NT 10.0.19042
29 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Justin\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "exec" "--" "degit" "sveltejs/template" "my-svelte-project"
30 verbose node v14.15.5
31 verbose npm v7.5.4
32 error code 1
33 error path C:\Users\Justin\Documents\svelte test
34 error command failed
35 error command C:\WINDOWS\system32\cmd.exe /d /s /c degit sveltejs/template my-svelte-project
36 verbose exit 1
here's the log
from template.
It seems to be something related to security issues.
I've made an npm install -g degit
and after degit username/project
and it worked!
from template.
Related Issues (20)
- No app body on MacOS HOT 2
- Upgrade packages HOT 1
- `npm run dev` updates terminal quickly and repeatively when nothing is going HOT 2
- tsconfig error when cloning HOT 2
- Error when building: Unrecognized option enableSourcemap HOT 1
- Importing a module throws "Uncaught ReferenceError: exports is not defined" in browser
- could not find commit hash for HEAD HOT 1
- Svelte dev on https doesn't detect changes HOT 3
- Typescript support broken with TS 4.5, can't find type declarations HOT 6
- Consider adding dotenv and @rollup/plugin-replace HOT 1
- IIFE vs ES output format
- Sharing the Vite template I made based on the RollUp template HOT 3
- Mac user issues: Unexpected token and site can't be reached
- I have to save everytime after making changes HOT 1
- Hot update doesnt work with sveltejs/template
- compilerOptions wont effect build/dont apply
- SyntaxError: Cannot use import statement outside a module HOT 11
- Deprecate RollUP template in favor of Vite's for Svelte
- 【Feature Request】public directory customization should be set in one place
- Package css into js HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from template.