一兩個月前接觸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文件都生成到根目錄下了,把這個隱藏文件刪除就可以正常使用了??梢詤⒖糷ttp://www.tuicool.com/articles/UNrMZj
2016-05-27