Fallo con con node-sass ubuntu 18
Publicado por ALEX (1 intervención) el 23/11/2020 20:47:22
Estoy realizando un curso, intentando trabajar con node-sass pero al digitar (npm run scss) para que se me genere automaticamente un .css en la carpeta local. pero salen poco de errores uso ubuntu 18, esto fue lo que instale:
Tambien ajuste el (package.json):

ERRORES:
1
2
3
npm install node-sass --save-dev
npm install --save-dev ruby sass
sudo npm install -g --unsafe-perm node-sass --save
Tambien ajuste el (package.json):

ERRORES:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
alexv@alexv-desktop:~/Documentos/guia-ht$ npm run scss
> guia-ht@1.0.0 scss /home/alexv/Documentos/guia-ht
> sass -o css/ css/
Could not find an option or flag "-o".
Usage: sass <input.scss> [output.css]
sass <input.scss>:<output.css> <input/>:<output/> <dir/>
━━━ Input and Output ━━━━━━━━━━━━━━━━━━━
--[no-]stdin Read the stylesheet from stdin.
--[no-]indented Use the indented syntax for input from stdin.
-I, --load-path=<PATH> A path to use when resolving imports.
May be passed multiple times.
-s, --style=<NAME> Output style.
[expanded (default), compressed]
--[no-]charset Emit a @charset or BOM for CSS with non-ASCII characters.
(defaults to on)
--[no-]error-css When an error occurs, emit a stylesheet describing it.
Defaults to true when compiling to a file.
--update Only compile out-of-date stylesheets.
━━━ Source Maps ━━━━━━━━━━━━━━━━━━━━━━━━
--[no-]source-map Whether to generate source maps.
(defaults to on)
--source-map-urls How to link from source maps to source files.
[relative (default), absolute]
--[no-]embed-sources Embed source file contents in source maps.
--[no-]embed-source-map Embed source map contents in CSS.
━━━ Other ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
--watch Watch stylesheets and recompile when they change.
--[no-]poll Manually check for changes rather than using a native watcher.
Only valid with --watch.
--[no-]stop-on-error Don't compile more files once an error is encountered.
-i, --interactive Run an interactive SassScript shell.
-c, --[no-]color Whether to use terminal colors for messages.
--[no-]unicode Whether to use Unicode characters for messages.
-q, --[no-]quiet Don't print warnings.
--[no-]trace Print full Dart stack traces for exceptions.
-h, --help Print this usage information.
--version Print the version of Dart Sass.
npm ERR! Linux 5.4.0-54-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "scss"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! guia-ht@1.0.0 scss: `sass -o css/ css/`
npm ERR! Exit status 64
npm ERR!
npm ERR! Failed at the guia-ht@1.0.0 scss script 'sass -o css/ css/'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the guia-ht package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! sass -o css/ css/
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs guia-ht
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls guia-ht
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/alexv/Documentos/guia-ht/npm-debug.log
Valora esta pregunta


0