在Ubuntu上安装Sass的IonicFramework错误

时间:2016-03-29 18:49:17

标签: ubuntu ionic-framework sass

我使用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

我寻求解决方案,但我什么都没发现! 我该怎么办? 谢谢!

1 个答案:

答案 0 :(得分:0)

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