Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/361.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Enoont,统计数据'-触笔';错误(本机)_Javascript_Css_Node.js_Npm_Stylus - Fatal编程技术网

Javascript Enoont,统计数据'-触笔';错误(本机)

Javascript Enoont,统计数据'-触笔';错误(本机),javascript,css,node.js,npm,stylus,Javascript,Css,Node.js,Npm,Stylus,我在使用触控笔时收到了一条奇怪的错误消息,首先我在linux机器上安装了nodejs for github,然后我运行了这个命令npm install-g stylus autoprefixer stylus,得到了这个错误日志/消息 npm ERR! Error: EACCES, unlink '/usr/local/lib/node_modules/autoprefixer-stylus' npm ERR! at Error (native) npm ERR! { [Error:

我在使用触控笔时收到了一条奇怪的错误消息,首先我在linux机器上安装了nodejs for github,然后我运行了这个命令
npm install-g stylus autoprefixer stylus
,得到了这个错误日志/消息

npm ERR! Error: EACCES, unlink '/usr/local/lib/node_modules/autoprefixer-stylus'
npm ERR!     at Error (native)
npm ERR!  { [Error: EACCES, unlink '/usr/local/lib/node_modules/autoprefixer-stylus']
npm ERR!   stack: 'Error: EACCES, unlink \'/usr/local/lib/node_modules/autoprefixer-stylus\'\n    at Error (native)',
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   path: '/usr/local/lib/node_modules/autoprefixer-stylus' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! System Linux 3.13.0-24-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "stylus" "autoprefixer-stylus"
npm ERR! cwd /home/avinashizhere
npm ERR! node -v v0.13.0-pre
npm ERR! npm -v 1.4.28
npm ERR! path /usr/local/lib/node_modules/autoprefixer-stylus
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! stack Error: EACCES, unlink '/usr/local/lib/node_modules/autoprefixer-stylus'
npm ERR! stack     at Error (native)
npm ERR! error rolling back Error: EACCES, unlink '/usr/local/lib/node_modules/autoprefixer-stylus'
npm ERR! error rolling back     at Error (native)
npm ERR! error rolling back  { [Error: EACCES, unlink '/usr/local/lib/node_modules/autoprefixer-stylus']
npm ERR! error rolling back   stack: 'Error: EACCES, unlink \'/usr/local/lib/node_modules/autoprefixer-stylus\'\n    at Error (native)',
npm ERR! error rolling back   errno: -13,
npm ERR! error rolling back   code: 'EACCES',
npm ERR! error rolling back   path: '/usr/local/lib/node_modules/autoprefixer-stylus' }
npm ERR! not ok code 0
要理解的是,我必须使用
sudo
来运行它,我添加了
sudo
,得到了这个输出

/usr/local/bin/stylus -> /usr/local/lib/node_modules/stylus/bin/stylus
autoprefixer-stylus@0.4.0 /usr/local/lib/node_modules/autoprefixer-stylus
└── autoprefixer-core@4.0.2 (caniuse-db@1.0.30000037, postcss@3.0.7)

stylus@0.49.3 /usr/local/lib/node_modules/stylus
├── css-parse@1.7.0
├── mkdirp@0.3.5
├── sax@0.5.8
├── debug@2.1.0 (ms@0.6.2)
├── source-map@0.1.41 (amdefine@0.1.0)
└── glob@3.2.11 (inherits@2.0.1, minimatch@0.3.0)
现在我想我需要软件包/文件,现在我运行了这个命令
stylus-u autoperfixer-stylus-w style.styl
,我得到了这个

/usr/local/lib/node_modules/stylus/bin/stylus:625
    if (err) throw err;
                   ^
Error: ENOENT, stat '-stylus'
    at Error (native)

我不知道出了什么问题,或者我缺少了什么?

您运行了一个错误的命令,要在终端上安装手写笔,请执行以下操作:

 sudo npm install -g stylus
然后,如果要安装autoprefixer触控笔,请运行:

 sudo npm install -g autoprefixer-stylus
现在我想我需要软件包/文件,现在我运行了这个命令
stylus-u autoperfixer-stylus
-w style.styl,我得到了这个


这是
autoperfixer-stylus
,不是
autoperfixer-stylus
autoperfixer-stylus
,不是
autoperfixer-stylus
。stylus-u autoperfixer-stylus-w style.styl/usr/local/lib/node\u modules/stylus/bin/stylus:625 if(err)抛出错误;^错误:enoint,stat'style.styl'出现错误(本机)@avinashizhere:
style.styl
不存在。你的手写笔样式表叫什么,它在哪里?