Posts

Showing posts with the label npm

Can't install TypeScript on MacOS - Terminal Error

Can't install TypeScript on MacOS - Terminal Error I have Visual Studio Code on my Mac and want to install TypeScript for Angular. I already previously installed Node.js or Git I think. This command from the TypeScript website should install TypeScript if it's run in the Mac Terminal, but it doesn't: npm install -g typescript If I paste it in the Terminal and press enter, this Error-code appears in the Terminal: (What is the problem? I really don't get it and have no clue about the terminal, I'm not a computer pro. Would be a big help if you have tips in easy words for beginners. Thanks!!) MacBook-Pro:~ Max$ npm install -g typescript npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules npm ERR! path /usr/local/lib/node_modules npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules' npm ERR! { [Error: EACCES: permission denied, access '/usr/lo...

develop php using terminal tools npm

develop php using terminal tools npm i enjoy developing frontend applications using terminal tools on macOS, tools like create-react-app or angular-cli you can easily start a new project from terminal inside any directory in system, just type create-react-app PROJECT_NAME and kaboom u r up and running. create-react-app is there any tools for php that can do same to ease development of php API ? current best i can do is using php builtin server inside any folder php -S localhost:8080 this will start a php server. one problem is htaccess wont work. Take a look for "composer" – Robbie Averill Jun 14 '17 at 0:08 yp i use it for pachages, i'm talking about server – Zalaboza Jun 14 '17 at 0:13 ...