我刚刚通过nodejs.org上的软件包安装了node和npm,每当我尝试使用npm搜索或安装某些内容时,它会抛出以下错误,除非我sudo命令.我觉得这是一个权限问题?我已经是管理员了.
npm ERR! Error: EACCES, open '/Users/chietala/.npm/-/all/.cache.json'
npm ERR! { [Error: EACCES, open '/Users/chietala/.npm/-/all/.cache.json']
npm ERR! errno: 3,
npm ERR! code: 'EACCES',
npm ERR! path: '/Users/chietala/.npm/-/all/.cache.json' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! System Darwin 12.2.0
npm ERR! command "node" "/usr/local/bin/npm" "search" "bower"
npm ERR! cwd /Users/chietala
npm ERR! node -v v0.10.4
npm ERR! npm -v 1.2.18
npm ERR! path /Users/chietala/.npm/-/all/.cache.json
npm ERR! code EACCES
npm ERR! errno 3
npm ERR! stack …Run Code Online (Sandbox Code Playgroud) 我正在尝试在我安装的Laravel 5.1中设置Gulp.我已npm install按照Laravel文档中的规定运行了命令,并且运行正常.
但是,当我现在运行命令时,gulp我收到以下消息:
ubuntu@NAME:/var/www/html/FOLDER# gulp
[14:04:56] Using gulpfile /var/www/html/FOLDER/gulpfile.js
[14:04:56] Starting 'default'...
[14:04:56] Starting 'sass'...
[14:04:56] Running Sass: resources/assets/sass/app.scss
[14:04:56] Finished 'default' after 532 ms
[14:04:56] gulp-notify: [Laravel Elixir] Sass Compiled!
[14:04:56] Finished 'sass' after 666 ms
[14:04:56] gulp-notify: [Error in notifier] Error in plugin 'gulp-notify'
not found: notify-send
Run Code Online (Sandbox Code Playgroud)
有没有其他人遇到过这个错误?
gulp-notify: [Error in notifier] Error in plugin 'gulp-notify'
not found: notify-send
Run Code Online (Sandbox Code Playgroud)
谢谢