一两个月前接触node.js,安装配置弄了近两天,简直少了半条命。老师讲课大都用的mac,window上会碰到一些问题真是头疼。
2016-05-30
root@venpear grunt-angular]# yo angular learnangular
/usr/local/lib/node_modules/yo/node_modules/configstore/index.js:53
throw err;
Error: EACCES: permission denied, open '/root/.config/configstore/insight-yo.json'
You don't have access to this file.
总是报这个,怎样解决
/usr/local/lib/node_modules/yo/node_modules/configstore/index.js:53
throw err;
Error: EACCES: permission denied, open '/root/.config/configstore/insight-yo.json'
You don't have access to this file.
总是报这个,怎样解决
2016-05-29
出错了:bogon:test-gulp-webapp yukang$ gulp serve
Error: Missing binding /Applications/XAMPP/xamppfiles/htdocs/mobile/labs/gulp-in-action/test-gulp-webapp/node_modules/node-sass/vendor/darwin-x64-14/binding.node Node Sass could not find a binding for your current environment: OS X 64-bit with Node
Error: Missing binding /Applications/XAMPP/xamppfiles/htdocs/mobile/labs/gulp-in-action/test-gulp-webapp/node_modules/node-sass/vendor/darwin-x64-14/binding.node Node Sass could not find a binding for your current environment: OS X 64-bit with Node
2016-05-28
最赞回答 / 飞溪流萤
终于把问题解决了,困扰了我一个多星期。我的问题是根目录有隐藏文件.yo-rc.json 文件,所以每次生成yeoman文件都生成到根目录下了,把这个隐藏文件删除就可以正常使用了。可以参考http://www.tuicool.com/articles/UNrMZj
2016-05-27