npm install
npm run dev
瀏覽 localhost:5000 就能看到網頁.
npm run build
npm run deploy
The source code of of kyaru-concat is released under the MIT License. All images are property of their respective owners.
接 頭 霸 王
Home Page: http://kyaru-connect.ayaya.tw/
License: MIT License
npm install
npm run dev
瀏覽 localhost:5000 就能看到網頁.
npm run build
npm run deploy
The source code of of kyaru-concat is released under the MIT License. All images are property of their respective owners.
開發您好,我今天在伺服器上部署的時候遇到報錯了,但是我對npm並不是非常了解,想請問一下要如何解決
npm版本
[root@cent kyaru-connect.*.*]# n -V
6.5.1
報錯內容
[root@cent kyaru-connect.*.*]# npm run deploy
> [email protected] deploy /www/wwwroot/kyaru-connect.*.*
> now --prod
sh: now: command not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! [email protected] deploy: `now --prod`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] deploy 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/2020-06-28T02_29_23_758Z-debug.log
以下是 debug 日誌 /root/.npm/_logs/2020-06-28T02_20_37_156Z-debug.log 的內容
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'deploy' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'predeploy', 'deploy', 'postdeploy' ]
5 info lifecycle [email protected]~predeploy: [email protected]
6 info lifecycle [email protected]~deploy: [email protected]
7 verbose lifecycle [email protected]~deploy: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~deploy: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/www/wwwroot/kyaru-connect.*.*/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
9 verbose lifecycle [email protected]~deploy: CWD: /www/wwwroot/kyaru-connect.*.*
10 silly lifecycle [email protected]~deploy: Args: [ '-c', 'now --prod' ]
11 info lifecycle [email protected]~deploy: Failed to exec deploy script
12 verbose stack Error: [email protected] deploy: `now --prod`
12 verbose stack spawn ENOENT
12 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)
12 verbose stack at ChildProcess.emit (events.js:315:20)
12 verbose stack at maybeClose (internal/child_process.js:1051:16)
12 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
13 verbose pkgid [email protected]
14 verbose cwd /www/wwwroot/kyaru-connect.*.*
15 verbose Linux 5.6.10-1.el7.elrepo.x86_64
16 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "deploy"
17 verbose node v14.2.0
18 verbose npm v6.14.4
19 error code ELIFECYCLE
20 error syscall spawn
21 error file sh
22 error errno ENOENT
23 error [email protected] deploy: `now --prod`
23 error spawn ENOENT
24 error Failed at the [email protected] deploy script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 1, true ]
App.svelte :
<div class="flex-row d-flex justify-content-center my-3">
<div class="col text-center">
<button class='btn btn-outline-secondary' on:click={restart}>
清空頭部
</button>
</div>
<div class="col text-center">
<button class='btn btn-outline-secondary' on:click={reverse}>
水平鏡像
</button>
</div>
</div>
let flip = false
function restart() {
heads = []
}
function reverse() {
flip = !flip
let nodes = document.getElementsByClassName('add-head-button')
for(let element of nodes) {
if(flip) {
element.style.transform = 'rotateY(180deg)'
} else {
element.style.transform = ''
}
};
}
{#each heads as head (head.id)}
<Head {canvas} {head} {flip}/>
{/each}
Head.svelte:
export let canvas, head, flip
fabricImage = new fabric.Image(image, {
rotatingPointOffset: 15,
cornerStyle: 'circle',
cornerColor: 'red',
transparentCorners: false,
borderColor: 'red',
scaleX: scale,
scaleY: scale,
flipX: flip
})
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.