I'm trying to write script code in package.json to run my app, but it's giving me error like.
(我正在尝试在package.json中编写脚本代码以运行我的应用程序,但这给了我类似的错误。)
0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Users\Rade\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'default' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'predefault', 'default', 'postdefault' ]
5 info lifecycle [email protected]~predefault: [email protected]
6 info lifecycle [email protected]~default: [email protected]
7 verbose lifecycle [email protected]~default: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~default: PATH: C:UsersRadeAppDataRoaming
pm
ode_modules
pm
ode_modules
pm-lifecycle
ode-gyp-bin;C:xampphtdocsXISS
ode_modules.bin;C:ProgramDataDockerDesktopversion-bin;C:Program FilesDockerDockerResourcesin;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:WINDOWSSystem32OpenSSH;C:ProgramDataComposerSetupin;C:Program Files (x86)Yarnin;C:Program Files
odejs;C:xamppphp;C:Program FilesPuTTY;C:Program FilesGitcmd;C:Program Files (x86)GoogleCloud SDKgoogle-cloud-sdkin;C:Python27;C:UsersRadeAppDataLocalProgramsPythonPython37-32Scripts;C:UsersRadeAppDataLocalProgramsPythonPython37-32;C:UsersRadeAppDataLocalMicrosoftWindowsApps;C:UsersRadeAppDataLocalProgramsMicrosoft VS Codein;C:UsersRadeAppDataRoamingComposervendorin;C:UsersRadeAppDataLocalYarnin;C:UsersRadeAppDataRoaming
pm;python27;C:UsersRadeAppDataLocalGitHubDesktopin
9 verbose lifecycle [email protected]~default: CWD: C:xampphtdocsXISS
10 silly lifecycle [email protected]~default: Args: [ '/d /s /c',
10 silly lifecycle 'sass --watch templates/default/assets/scss/main.scss:templates/default/assets/css/light-style-1.min.css --style compressed' ]
11 silly lifecycle [email protected]~default: Returned: code: 1 signal: null
12 info lifecycle [email protected]~default: Failed to exec default script
13 verbose stack Error: [email protected] default: `sass --watch templates/default/assets/scss/main.scss:templates/default/assets/css/light-style-1.min.css --style compressed`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:UsersRadeAppDataRoaming
pm
ode_modules
pm
ode_modules
pm-lifecycleindex.js:301:16)
13 verbose stack at EventEmitter.emit (events.js:189:13)
13 verbose stack at ChildProcess.<anonymous> (C:UsersRadeAppDataRoaming
pm
ode_modules
pm
ode_modules
pm-lifecyclelibspawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:189:13)
13 verbose stack at maybeClose (internal/child_process.js:970:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid [email protected]
15 verbose cwd C:xampphtdocsXISS
16 verbose Windows_NT 10.0.18362
17 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\Rade\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "default"
18 verbose node v10.15.3
19 verbose npm v6.9.0
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] default: `sass --watch templates/default/assets/scss/main.scss:templates/default/assets/css/light-style-1.min.css --style compressed`
22 error Exit status 1
23 error Failed at the [email protected] default script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
I have installed my template to Smarty template, before that everything works fine with that scirpts
(我已经将模板安装到Smarty模板中,然后所有脚本都可以正常工作)
"scripts": {
"default-watch-style-sass": "sass --watch default/assets/scss/main.scss:default/assets/css/light-style-1.min.css --style compressed",
"horizontal-watch-style-sass": "sass --watch templates/default/assets/scss/main.scss:horizontal/assets/css/style.min.css --style compressed",
"horizontal-dark-watch-style-sass": "sass --watch horizontal-dark/assets/scss/main.scss:horizontal-dark/assets/css/style.min.css --style compressed",
"horizontal-inside-nav-watch-style-sass": "sass --watch horizontal-inside-nav/assets/scss/main.scss:horizontal-inside-nav/assets/css/style.min.css --style compressed",
"horizontal-bottom-nav-watch-style-sass": "sass --watch horizontal-bottom-nav/assets/scss/main.scss:horizontal-bottom-nav/assets/css/style.min.css --style compressed",
"horizontal-top-nav-watch-style-sass": "sass --watch horizontal-top-nav/assets/scss/main.scss:horizontal-top-nav/assets/css/style.min.css --style compressed",
"back-office-watch-style-sass": "sass --watch back-office/assets/scss/main.scss:back-office/assets/css/style.min.css --style compressed",
"back-office-mini-watch-style-sass": "sass --watch back-office-mini/assets/scss/main.scss:back-office-mini/assets/css/style.min.css --style compressed",
"drawer-watch-style-sass": "sass --watch drawer/assets/scss/main.scss:drawer/assets/css/style.min.css --style compressed",
"style-back-office": "npm-run-all --parallel back-office-watch-style-sass back-office-css-prefix",
"style-back-office-mini": "npm-run-all --parallel back-office-mini-watch-style-sass back-office-mini-css-prefix",
"style-drawer": "npm-run-all --parallel drawer-watch-style-sass drawer-css-prefix",
"style-crm": "npm-run-all --parallel crm-watch-style-sass crm-css-prefix",
"run-all": "npm-run-all --parallel style-default style-horizontal style-horizontal-dark style-horizontal-inside-nav style-intranet style-back-office style-back-office-mini style-drawer style-crm"
}
So i Changed scripts to only.
(所以我将脚本更改为仅。)
"main": "sass --watch template/default/assets/scss/main.scss:templates/default/assets/css/style.min.css --style compressed"
I just needed to change location, but nothing happened.
(我只需要更改位置,但什么都没发生。)
Any ideas?(有任何想法吗?)
ask by rade rade translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…