如何从命令行使用带有手写笔的笔尖?

hur*_*lad 2 command-line stylus

我有这个手写笔文件:

@import 'nib'

div
  background linear-gradient(red, blue)
Run Code Online (Sandbox Code Playgroud)

npm install nib@imported nib希望" 能够获得nib提供的所有东西 ",但是当我

> stylus file.styl
Run Code Online (Sandbox Code Playgroud)

我得到的只是

failed to locate @import file nib.styl
Run Code Online (Sandbox Code Playgroud)

少了什么东西?

hur*_*lad 9

尝试使用usenib:

> stylus -u nib file.styl
Run Code Online (Sandbox Code Playgroud)

来自stylus --help:

Options:
   -u, --use <path>        Utilize the Stylus plugin at <path>
Run Code Online (Sandbox Code Playgroud)