angularjs - Can not install angular-cli on mac Elcapitan -


when try install angular-cli see many warnings , after when type

ng --version shows :

mdsazids-imac:~ mymac$ ng --version

fs.js:640 return binding.open(pathmodule._makelong(path), stringtoflags(flags), mode); ^

typeerror: path must string or buffer

at typeerror (native) @ object.fs.opensync (fs.js:640:18) @ object.fs.readfilesync (fs.js:508:33) @ function.version.fromproject (/usr/local/lib/node_modules/angular-cli/upgrade/version.js:87:31) @ function.version.isprewebpack (/usr/local/lib/node_modules/angular-cli/upgrade/version.js:111:31) @ function.version.assertpostwebpackversion (/usr/local/lib/node_modules/angular-cli/upgrade/version.js:97:18) @ /usr/local/lib/node_modules/angular-cli/bin/ng:25:15 @ /usr/local/lib/node_modules/angular-cli/node_modules/resolve/lib/async.js:44:21 @ ondir (/usr/local/lib/node_modules/angular-cli/node_modules/resolve/lib/async.js:187:31) @ /usr/local/lib/node_modules/angular-cli/node_modules/resolve/lib/async.js:153:39 

mdsazids-imac:~ mymac$

i dont problem can tell me..????

this seems similar issue on ubuntu.

error while creating new project angular-cli

can post issue on github? https://github.com/angular/angular-cli/issues

edit: can try use npm install -g webpack before installing angular-cli. (as sudo/root please)

this fixed problem! :)


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -