【问题标题】:IonicFramework error installing Sass on Ubuntu在 Ubuntu 上安装 Sass 时出现 IonicFramework 错误
【发布时间】:2016-03-31 05:27:00
【问题描述】:

我使用 Ubuntu 14.04 64 位,我正在尝试使用以下命令在 Ionic 上安装 Sass:

ionic setup sass

但是,这样做的结果是:

npm WARN deprecated gulp-minify-css@0.3.13: Please use gulp-clean-css
npm ERR! Linux 3.19.0-56-generic
npm ERR! argv "node" "/usr/bin/npm" "install"
npm ERR! node v0.12.12
npm ERR! npm  v3.8.3
npm ERR! path /home/thales/.npm/chalk/1.1.3
npm ERR! code EACCES
npm ERR! errno -13

npm ERR! Error: EACCES, mkdir '/home/thales/.npm/chalk/1.1.3'
npm ERR!     at Error (native)
npm ERR!  { [Error: EACCES, mkdir '/home/thales/.npm/chalk/1.1.3']
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   path: '/home/thales/.npm/chalk/1.1.3',
npm ERR!   parent: 'gulp' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/thales/Desktop/mectria/npm-debug.log

Error running npm install



Exception with  (CLI v1.7.14)

Your system information:

Cordova CLI: 6.1.0
Gulp version:  CLI version 3.9.1
Gulp local:   Local version 3.9.1
Ionic Version: 1.2.4
Ionic CLI Version: 1.7.14
Ionic App Lib Version: 0.7.0
OS: Distributor ID: Ubuntu Description: Ubuntu 14.04.4 LTS 
Node Version: v0.12.12

我寻求解决方案,但我什么也没找到! 我应该怎么办? 谢谢!

【问题讨论】:

    标签: ubuntu ionic-framework sass


    【解决方案1】:

    根据错误日志,您家中的目录 /home/thales/.npm/ 似乎没有写入权限,因此您可以尝试以 root 身份启动它或更改访问权限这个文件夹。
    或者您可以尝试在没有 Ionic cli 帮助程序的情况下手动设置 sass。

    【讨论】:

    • 非常感谢!这是工作
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-11-01
    • 2018-08-25
    • 2020-02-27
    • 2018-11-12
    • 2020-11-08
    • 2015-04-29
    • 2014-08-19
    相关资源
    最近更新 更多