2016年3月7日 星期一

npm install problem, command not found


to get the default path:
npm config get prefix

 export PATH="/Users/username/npm/lib/node_modules/vue-cli/bin:$PATH"
$PATH="/Users/username/npm/lib/node_modules/vue-cli/bin:$PATH"

The default on OS X is /usr/local, which means that npm will symlink binaries into /usr/local/bin, which should already be on your PATH (especially if you're using Homebrew).




沒有留言:

張貼留言