Tag Archives: Mac Error

Mac error: SH: Vue cli service: command not found

An error below: sh: vue - cli - service: command not found

solution:
terminal execute the command

#clear cache
npm cache clean --force   
#reinstall
npm/cnpm  install

Another online article roughly said 3 solutions
1. Reinstall the
delete folder node_modules in carrying out NPM/CNPM install to install
2. Specify the path
./node_modules/.bin/vue-cli-service build
3. Global installation
npm install @vue/cli-service -g
NODE_ENV=production
Try a few times more, if other reasons can refer to https://stackoverflow.com/questions/51172064/command-not-found-with-vue-cli

Setting label malloc in MAC development_ error_ Break breakpoint (Xcode)

From: http://stackoverflow.com/questions/971249/how-to-find-the-cause-of-a-malloc-double-free-error

To add a symbolic breakpoint . . .

    In the bottom-left corner of the breakpoint navigator, click the Add button. Choose Add Symbolic Breakpoint. Enter the symbol name in the Symbol field. Click Done.

It is mainly used to solve the problem of releasing the same object multiple times.

Mac PHP Fatal error: Class ‘Memcache’ not found

I’ve had this weird problem developing PHP Memcache these days. The Memcache environment was installed successfully but the running code always reported an error

$mem = new Memcache();
$mem->connect('127.0.0.1',11211);
$mem->set("foo","3",0,10);
echo $mem->get("foo");

Running tips PHP Fatal error: Class ‘Memcache’ not found in/Users/XXXXXXXXX/demo/index. The PHP on line 9
Finally, using baidu, Google and their own various experiments finally found the cause of the problem:
code did not find the corresponding memcache.so file

1, install memcache

brew search memcache


Find memcache (note: not memcached) that corresponds to the PHP version installed on your computer.
is installed using brew

brew install php56-memcache

When the installation is complete, the php56-memcache installation directory will be viewed

2, configure php.ini
add at the end of php.ini

extension_dir = /usr/local/Cellar/php56-memcache/2.2.7
extension = memcached.so

Finally, rerun it, and you’ll see the magic: it worked